dropdownlist 不刷新页面 textchanged
分数不够只能在这贴了!
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddl_lb" runat="server" CssClass="textbox"
ontextchanged="ddl_lb_TextChanged" Width="60px" AutoPostBack="True">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
protected void ddl_lb_TextChanged(object sender, EventArgs e)
{
if (ddl_lb.SelectedValue == "病假" || ddl_lb.SelectedValue == "婚假" || ddl_lb.SelectedValue == "产/陪产假")
{
Response.Write("<script>alert('请病/婚/产/陪产假者需提供相关假期证明。');;</script>");
}
if (ddl_lb.SelectedValue == "丧假" && gh.Value.Substring(0, 1) == "1")
{
Response.Write("<script>alert('请丧假者需提供相关证明。');;</script>");
}
}
textchanged不起作用!帮解决
补充:.NET技术 , 非技术区