好像没有填充dt表吧
sqldataadapter 填充dt表 试试
sqldataadapter 填充dt表 试试
解决方案 »
- 请教一个Gridview的一用法
- 怎么用ASP.NET 实现doc转化swf,就是WORD文档转化Flash文件??请教高手指点。最好给一个实例看看。
- 怎么用正则提取div里文本
- 问个很初级的,关于页面声明变量的问题。
- 如何用 SqlServer 记录 Session ??
- ASP.NET中使用DirectX的问题
- 关于远程创建文件夹的问题,解决马上结分。!!!
- 如何用javascript 遍历一个页面中的全部控件?
- 消息提醒(类似于阿里旺旺)
- WebClient访问共享文件被拒绝,url地址用浏览器能直接打开,用代码调试也能访问到文件,发布倒IIS 就提示url 被拒绝访问,求解,急急急!!!!!
- visualStudio2008 mschart xy轴问题。
- bLISTBOX 图片滑动效果不好,不连贯,代码如下:
if(DropDownList4.selectValue.ToString()="")
{
cmdText = "select * from Student where Scol='" + DropDownList4.selectValue.ToString() + "'and Sdept='" + DropDownList5.selectValue.ToString() + "'and Sclass='" + DropDownList3.selectValue.ToString() + "'";
}
else
{
.....
}
<asp:DropDownList ID="DropDownList4" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource4" DataTextField="colName" DataValueField="classId">
</asp:DropDownList></td>
<td style="width: 68px; height: 26px;">
专业:</td>
<td style="width: 38px; height: 26px">
<asp:DropDownList ID="DropDownList5" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource3" DataTextField="deptName" DataValueField="classId">
</asp:DropDownList></td>
用DropDownList4.selectValue.ToString() 就不起作用了该怎么办?
条件 不是Text
字段绑定是否正确
<asp:DropDownList ID="DropDownList4" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource4" DataTextField="colName" DataValueField="classId">
</asp:DropDownList> </td>
<td style="width: 68px; height: 26px;">
专业: </td>
<td style="width: 38px; height: 26px">
<asp:DropDownList ID="DropDownList5" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource3" DataTextField="deptName" DataValueField="classId">
</asp:DropDownList> </td>
这样就可以连起来,我设了个Button来进行搜索相应数据,但是搜索不出来。