Thursday, 14 August 2014

Call OnChange along with selectedindexchanged in dropdownlist

<script type="text/javascript">
    function Validate(Uid)
    {      
        document.getElementById('<%=TBPwd1.ClientID%>').value = '';
        document.getElementById('<%=TBPwd2.ClientID%>').value = '';
        eval('__doPostBack("'+Uid+'", "");');
        return false;
    }
</script>


<asp:DropDownList ID="DropDownListLevel" runat="server" AutoPostBack="True"  Width="250px" onchange="return Validate(this.name);"  onselectedindexchanged="DropDownListLevel_SelectedIndexChanged">
    </asp:DropDownList>


protected void DropDownListLevel_SelectedIndexChanged(object sender, EventArgs e)
{
}

No comments:

Post a Comment