当我在领用人输入领用人编号的时候 在数据库查找姓名 然后把领用人的编号加姓名显示在 你输入的领用人编号的框里面
<%
for (int i = 0; i < db_gridview_bound.Rows.Count; i++)
{
rows1++;
%>
<tr>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;">
<input id="Checkbox2" type="checkbox" name="Check" value="<%=i %>" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;" >
<input id="Text5" type="text" name="CL_BIANMA<%=i%>" value="<%=db_gridview_bound.Rows[i]["CL_BIANMA"].ToString().Trim()%>" style="width: 109px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;">
<input id="Text6" type="text" name="CL_NAME<%=i%>" value="<%=db_gridview_bound.Rows[i]["CL_NAME"].ToString().Trim()%>" style="width: 100%; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; width: 15%; border-bottom: lightgrey thin solid; text-align: center; height: 20px; font-size: 14px;">
<input id="Text7" type="text" name="CL_GUIGE<%=i%>" value="<%=db_gridview_bound.Rows[i]["CL_GUIGE"].ToString().Trim()%>" style="width: 113px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;" >
<input id="Text1" class="box1" type="text" name="CL_DW<%=i %>" /><input id="Text3" type="text" name="WUL_ID<%=i%>" value="<%=db_gridview_bound.Rows[i]["WUL_ID"].ToString().Trim()%>" style="width: 0px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; visibility: hidden; height: 0px;" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; width: 15%; border-bottom: lightgrey thin solid; text-align: center; height: 20px; font-size: 14px;">
<input id="Text2" onkeyup="JHshIsNumber(this,'该列只能为数字');" name="rk_count<%=i %>" type="text" style="width: 103px" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;">
<input id="dd<%=i %>" name="aa<%=i %>" type="text"class="box1" Height="24px" onblur="isFocus1(id)"onfocus="isFocus(id)" style="width: 108px" />
</td>
</tr>
<%}
%>
<%
for (int i = 0; i < db_gridview_bound.Rows.Count; i++)
{
rows1++;
%>
<tr>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;">
<input id="Checkbox2" type="checkbox" name="Check" value="<%=i %>" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;" >
<input id="Text5" type="text" name="CL_BIANMA<%=i%>" value="<%=db_gridview_bound.Rows[i]["CL_BIANMA"].ToString().Trim()%>" style="width: 109px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;">
<input id="Text6" type="text" name="CL_NAME<%=i%>" value="<%=db_gridview_bound.Rows[i]["CL_NAME"].ToString().Trim()%>" style="width: 100%; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; width: 15%; border-bottom: lightgrey thin solid; text-align: center; height: 20px; font-size: 14px;">
<input id="Text7" type="text" name="CL_GUIGE<%=i%>" value="<%=db_gridview_bound.Rows[i]["CL_GUIGE"].ToString().Trim()%>" style="width: 113px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;" >
<input id="Text1" class="box1" type="text" name="CL_DW<%=i %>" /><input id="Text3" type="text" name="WUL_ID<%=i%>" value="<%=db_gridview_bound.Rows[i]["WUL_ID"].ToString().Trim()%>" style="width: 0px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; visibility: hidden; height: 0px;" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; width: 15%; border-bottom: lightgrey thin solid; text-align: center; height: 20px; font-size: 14px;">
<input id="Text2" onkeyup="JHshIsNumber(this,'该列只能为数字');" name="rk_count<%=i %>" type="text" style="width: 103px" />
</td>
<td style=" border-right: lightgrey thin solid; border-top: lightgrey thin solid; vertical-align: middle; border-left: lightgrey thin solid; border-bottom: lightgrey thin solid; text-align: center; width: 15%; height: 20px; font-size: 14px;">
<input id="dd<%=i %>" name="aa<%=i %>" type="text"class="box1" Height="24px" onblur="isFocus1(id)"onfocus="isFocus(id)" style="width: 108px" />
</td>
</tr>
<%}
%>
解决方案 »
- asp.net checkBOX
- 如何实现类似淘宝上商品颜色和尺寸选择的功能啊
- asp.net 所有查询条件用url传
- 根据一个城市的ip跳到不同网站 aspx
- asp.NET用户控件问题
- Excel.Workbooks.Open方法有时会出错是怎么回事啊?!救命呀!!
- 请问那个知微软标准的存储过程操作类,能否发给我一份
- 有谁介绍一本用VC#做ASP.Net实例的书啊
- 修改web.config问题~~~~在线求救!!
- asp.net中crystal report转成excel格式问题,如何保证表格和数据格式不改变?急~~~
- asp.net动态生成日期如何搞?
- 想进一步学习asp.net,跪求几本好书和学习方法
思路就不是.net该有的思路