解决方案 »
- 单点登录问题。
- 由程序员转行做银行职员!
- 如何条件筛选DataSet数据?
- 哪为老师有论坛原码借我学习学习
- tooltip显示时间能不能设置的,如果能,怎么设
- 如何得到嵌套在DataGrid中的控件ID
- 请教关于ActiveReport显示的问题,客户端无法正常显示activeXviewer类型的报表,请问如何解决
- 一个关于打开新页面的问题!
- 后网页刷新前面网页的问题:a.aspx中有连接指向b.aspx,不向b网页传递参数,并且a.aspx网页名是动态的,怎样在b网页中实现a网页的重新加载
- 请问大家怎样用DataList实现这样的功能???
- ascx根据aspx后台动态生成控件的ID动态生成的方法
- GridView如何不用SqlDataSource,还可以使用编辑功能?
<asp:ListItem>dddddd</asp:ListItem>
<asp:ListItem>33333</asp:ListItem>
<asp:ListItem>3444443</asp:ListItem>
</asp:DropDownList>
protected void test_SelectedIndexChanged(object sender, EventArgs e)
{
var yesye = ((DropDownList)sender).SelectedValue;
Response.Write(yesye.ToString());//取得大组的值然后去数据库取出对应的小组的shu
然后在 绑定小组的数据
for(int i = 0;i < DataGrid1.Items.Count;i++)
{
DropDownList ddl1 = (DropDownList)DataGrid1.Items[i].FindControl("DropDownList2");
//取得数据绑定
}
}
这是我前台小组控件绑定 <asp:DropDownList id="TBMinGroup" runat="server" Width="88px" Datasource="<%#TBMinGroup()%>"
DataValueField="MinGroupID" DataTextField="MinGroupName" Enabled="true" AutoPostBack="True">
</asp:DropDownList> 不知道对不对
就是这个呗