当dropdownlist变化时候一定要设置autopostback=true 才能激活出发事件
2011-01-18 13:30
645 查看
<tr>
<td class="style10">
Fault Condition1:
</td>
<td>
<asp:ScriptManager runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel6" runat="server">
<ContentTemplate>
<asp:DropDownList ID="Fault1_DropDownList" AutoPostBack=true runat="server" Width="254px" OnSelectedIndexChanged="fault1changed">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td class="style7">
Fault1 Severity:
</td>
<td class="style3">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList ID="Severity_DropDownList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="severityChanged"
Width="133px">
<asp:ListItem Text="NORMAL" Value="1">
</asp:ListItem>
<asp:ListItem Text="ABNORMAL" Value="2">
</asp:ListItem>
<asp:ListItem Text="MODERATE" Value="3">
</asp:ListItem>
<asp:ListItem Text="SEVERE" Value="4">
</asp:ListItem>
<asp:ListItem Text="NOT TESTED" Value="5">
</asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Fault1_DropDownList" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
<td class="style10">
Fault Condition1:
</td>
<td>
<asp:ScriptManager runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel6" runat="server">
<ContentTemplate>
<asp:DropDownList ID="Fault1_DropDownList" AutoPostBack=true runat="server" Width="254px" OnSelectedIndexChanged="fault1changed">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td class="style7">
Fault1 Severity:
</td>
<td class="style3">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList ID="Severity_DropDownList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="severityChanged"
Width="133px">
<asp:ListItem Text="NORMAL" Value="1">
</asp:ListItem>
<asp:ListItem Text="ABNORMAL" Value="2">
</asp:ListItem>
<asp:ListItem Text="MODERATE" Value="3">
</asp:ListItem>
<asp:ListItem Text="SEVERE" Value="4">
</asp:ListItem>
<asp:ListItem Text="NOT TESTED" Value="5">
</asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Fault1_DropDownList" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
相关文章推荐
- dropdownlist设置 AutoPostBack=True 时不能触发事件的问题
- (摘抄)为什么设置了DropDownList的AutoPostBack="True"还是不能触发SelectedIndexChanged事件?
- (论坛答疑点滴)为什么设置了DropDownList的AutoPostBack="True"还是不能触发SelectedIndexChanged事件?
- 为什么设置了DropDownList的AutoPostBack="True"还是不能触发SelectedIndexChanged事件? 转
- 为什么设置了DropDownList的AutoPostBack="True"还是不能触发SelectedIndexChanged事件?
- 为什么设置了DropDownList的AutoPostBack="True"还是不能触发SelectedIndexChanged事件?
- DropDownList 事件触发问题:设置了AutoPostBack=True还是不能触发SelectedIndexChanged事件
- asp:DropDownList 控件 设置AutoPostBack=true 但是OnSelectedIndexChanged仍不触发的问题。
- 注册事件为何无效,没有触发? AUTOPOSTBACK已经设置为TRUE
- 解决:DropDownList的AutoPostBack=True不能触发SelectedIndexChanged事件
- dropdownlist修改了AutoPostBack='true'也不能触发SelectedIndexChanged事件
- 控件设置为focusable为true后要点击第2下才能触发OnClick事件
- 问题:DropDownList启用AutoPostback后,SelectedIndexChanged事件跟踪不到
- 控件要设置autopostback=true
- 控件设置为focusable为true后要点击第2下才能触发OnClick事件
- 设置搜狗输入法在任何时候按左右两侧的shift激活
- Mysql 连接数据库超时设置autoReconnect=true
- checkbox_checkedChanged not work you have to add autopostback to true
- 只有在配置文件或 Page 指令中将 enableSessionState 设置为 true 时,才能使用会话状态。还请确保在应用程序配置的 // 节中包括 System.Web.SessionStateMod 或自定义会话状态模块 -
- Client function doesn't works if you set the ASP.NET server control AutoPostBack to 'True'.