Answer: We have to set
AutoPostback property of Dropdownlist and Textbox control to True,if we want their'event to be fired.
If we do not set AutoPostback property to true,then event will not be raised.
<asp:DropDownList ID="ddl_employee_name" runat="server" OnSelectedIndexChanged="ddl_employee_name_SelectedIndexChanged" AutoPostBack="true" ></asp:DropDownList>
<asp:TextBox ID="txt_employee_pan_no" runat="server" AutoPostBack="true" OnTextChanged ="txt_employee_pan_no_TextChanged"></asp:TextBox>
Asked In: Many Interviews |
Alert Moderator