<asp:DropDownList ID="DDL_Type" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DDL_Type_SelectedIndexChanged">
</asp:DropDownList>
protected void DDL_Type_SelectedIndexChanged(object sender, EventArgs e)
{ if (Convert.ToInt32(this.DDL_Type.SelectedValue) > 0)
{
TProductType type = new TProductType("");
this.DDL_DetaiType.DataSource = type.GetList1(Convert.ToInt16(this.DDL_Type.SelectedValue));
this.DDL_DetaiType.DataValueField = "FID";
this.DDL_DetaiType.DataTextField = "FTypeName";
this.DDL_DetaiType.DataBind();
UpdatePanelNewPerAssetReg.Update(); }
}不让dropdownlist刷新页面,但是OnSelectedIndexChanged还要触发,怎样实现,请大家帮帮忙
</asp:DropDownList>
protected void DDL_Type_SelectedIndexChanged(object sender, EventArgs e)
{ if (Convert.ToInt32(this.DDL_Type.SelectedValue) > 0)
{
TProductType type = new TProductType("");
this.DDL_DetaiType.DataSource = type.GetList1(Convert.ToInt16(this.DDL_Type.SelectedValue));
this.DDL_DetaiType.DataValueField = "FID";
this.DDL_DetaiType.DataTextField = "FTypeName";
this.DDL_DetaiType.DataBind();
UpdatePanelNewPerAssetReg.Update(); }
}不让dropdownlist刷新页面,但是OnSelectedIndexChanged还要触发,怎样实现,请大家帮帮忙
解决方案 »
- C#与DELPHI问题
- 二进制流的使用问题~~~希望大家帮我看一下~~~
- 大虾们,江湖救急啊...各位帮帮忙
- 大家都是怎样来处理这种问题的!!!顶者有分
- 学习正则表达式要看那些书或资料比较好?
- 有多少人关心Excel操作与打印?这里提供VB.Net、C#的使用方法及Web下导出Excel的解决方法...
- 转换.tif图像为jpg或gif 问题。
- 错误 7 命名空间“CrystalDecisions”中不存在类型或命名空间名称“CrystalReports”。是否缺少程序集引用?
- C#工厂模式的问题
- PetaPoco运行后出错,谁能帮忙分析下
- 如何捕获datagridview自动添加行事件
- C# 如何取字符串中含有网址
</asp:ScriptManager><asp:UpdatePanel ID="" runat="">
<ContentTemplate>
<asp:DropDownList ID="DDL_Type" runat="server"AutoPostBack="true"OnSelectedIndexChanged="DDL_Type_SelectedIndexChanged">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>