Ajax实现的明细去除重复 datatable去除重复
ajax Detail.aspx页面
protected void Page_Load(object sender, EventArgs e)
{
Thread.Sleep(500);
string Keyid = Request.QueryString["Id"].ToString();
//string wsn = Request.QueryString["wsn"].ToString();
DataTable dt = Hst.Paging.Paging.GetList(" ExecSN ='" + Keyid + "' and (Status='已检验' or status='部分入库')", "V_ExecPro_Bom1").Tables[0];
StringBuilder sb = new StringBuilder();
sb.Append("<table style='width:83%' style='margin:2px;border:Double 3px #5D7B9D;'><tr><th>选择</th>");
sb.Append("<th>产品编码</th><th>产品名称</th><th>产品规格</th><th>产品型号</th><th>产品材质</th>");
sb.Append("<th>产品图纸号</th><th>产品单位</th><th>计划数量</th><th>合格数量</th><th>未入库数量</th><th>本次入库数量</th></tr>");
string a = "";
bool isFirst = false;
if (dt.Rows.Count != 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
&
相关文档:
<input type="button" onclick="ajaxTest()" value="AJAX测试">
<input type="button" onclick=" document.getElementById('weather').innerHTML='' " value="隐藏">
<mce:script type="text/javascript"><!--
// 1. 初始化 请求 对象
// Mozilla/Firefox 下的
//var xmlhttp = ne ......
如上图所示为Accordion控件:
感觉不错的样式
<style type="text/css">
.headerBg{cursor:hand;text-align:center;width:180px;height:21px;background-image:url(images/ajaxmenubg1.gif);FONT-SIZE: 12px;line-height:21px;} ......
如上图所示的等级控件(这个控件主要指定样式):
页面代码:
<head runat="server">
<title>无标题页</title>
<mce:style type ="text/css"><!--
.ratingStar
{
font-size:0pt;
width:15px;
height:12px;
......
在C#中
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Services;
using System.Collections.Generic;
using System.Collections;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.Ba ......