gridview 如果不使用向导怎么绑定数据啊 gridview 如果不使用向导怎么绑定数据啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 this.DataView1.DataSrouce= dt.Default.View ;//dt是一个tablethis.DataView1.DataBind();-----难免有错,错了莫怪. gridview.DataSource = dataset;gridview.DataBind(); gridview 用向导绑定数据后,想实现一个查询的功能,怎么做呢?? 以下是查询的HTML <asp:Label ID="Label1" runat="server" Text="姓名"></asp:Label> <asp:TextBox ID="tb1" runat="server"></asp:TextBox> <asp:DropDownList ID="dp2" runat="server"> <asp:ListItem>全部</asp:ListItem> <asp:ListItem>a问题</asp:ListItem> <asp:ListItem>b问题</asp:ListItem> <asp:ListItem>c问题</asp:ListItem> <asp:ListItem>d问题</asp:ListItem> <asp:ListItem>e问题</asp:ListItem> </asp:DropDownList> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" / dp2.datasource=datasetdp2.datatextfield="id"dp2.datavaluefield="user"dp2.DataBind() 字符串问题:如何将字符串“ww|ee”转换为“ww 换行 ee” 郁闷!vs2003调试时的奇怪问题? 100分全押了,怎么获得dts包执行过程中的状态? 关于框架的问题,在线等待 在线急求关于 页面之间传递参数的问题 一个关于DataGrid分页的奇怪的问题,请帮帮忙(急) asp.net出错 mvc对数据库新增表应该如何处理? 错误提示!! 关于Response.ContentType的值!! 如何用js跳转页面,并且传值? 请教有关GridView取值问题
this.DataView1.DataBind();-----难免有错,错了莫怪.
gridview.DataBind();
<asp:TextBox ID="tb1" runat="server"></asp:TextBox>
<asp:DropDownList ID="dp2" runat="server">
<asp:ListItem>全部</asp:ListItem>
<asp:ListItem>a问题</asp:ListItem>
<asp:ListItem>b问题</asp:ListItem>
<asp:ListItem>c问题</asp:ListItem>
<asp:ListItem>d问题</asp:ListItem>
<asp:ListItem>e问题</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" /
dp2.datatextfield="id"
dp2.datavaluefield="user"
dp2.DataBind()