Which property must be enabled to fire events of Dropdownlist as well as TextBox control?

 Posted by vishalneeraj-24503 on 12/23/2013 | Category: ASP.NET Interview questions | Views: 2025 | Points: 40
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 

Comments or Responses

Login to post response