实现select标签的取值和赋值 实现select标签取值和赋值的功能,有一个数据库 表news,三个字段(id,name,content),打开网页初次加载时,把name加载到select中(包括text,value),然后选择select中的option时,触发事件,把content的内容显示在一个<div>层里面,要求触发事件时,页面不刷新。看看那位大侠能帮一下忙!谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 查询所有Load事件绑定数据源DDL的selectIndexChanged事件中得到选中值。追加到层的innerHtml中去。。不想刷新加个updatepanel 或dropdownlist联动<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:DropDownList ID="ddlLB" runat="server" Width="15%" AutoPostBack="True" OnSelectedIndexChanged="ddlLB_SelectedIndexChanged"> </asp:DropDownList> <asp:DropDownList ID="ddlChild" runat="server" Width="20%"> </asp:DropDownList> </ContentTemplate> </asp:UpdatePanel> </div> protected void ddlLB_SelectedIndexChanged(object sender, EventArgs e) { if(this.ddlLB.SelectedValue!=null) { } } XmlDocument的一个小问题 C# Asp.net2.0 中怎么获得可用语言列表?????标题要长!~!!!! 如何判断当前时间在晚上22:00到凌晨6:00之间 后台控制JS DataGrid中如何实施将“1”变成另外一种表示 看视简单的问题? 我想实现一个文件过滤的功能 win2003server下发布网站 关于模板列中函数的调用问题(请教高手) 移动开发 dataGridView滚动条出现时程序无响应 求正则,刚需求没说清楚。。。
dropdownlist联动
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddlLB" runat="server" Width="15%" AutoPostBack="True" OnSelectedIndexChanged="ddlLB_SelectedIndexChanged">
</asp:DropDownList>
<asp:DropDownList ID="ddlChild" runat="server" Width="20%">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
</div>
protected void ddlLB_SelectedIndexChanged(object sender, EventArgs e)
{
if(this.ddlLB.SelectedValue!=null)
{ }
}