Programmers learn & share
0 votes

Problem :

I came across a problem as follows
if you set the autopostback property of a control to true, the page is posted back to the server
Any solution on this ?
by (6.9k points)   | 37 views

1 Answer

0 votes

Solution :

The AutoPostBack = true permits control to post back to server. It is closely associated with an Event.


<asp:DropDownList id="id" runat="server" AutoPostBack="true" OnSelectIndexChanged="..."/>

This aspx page with the above mentioned drop down list does not need an asp:button to do the post back. When you change an option in the drop down list then the page gets posted back to the server.

Note : Default value of AutoPostBack on control is false.

by (36.1k points)  
2,204 questions
2,608 answers
241 users