Hi Friends,
I want to know about the use of AutoPostBack?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gohil JayendrasinhPosted Mar 21, 2012, 1:35 AM
hi
The AutoPostBack property is used to set or return whether or not an automatic post back occurs when the user presses
"ENTER" or "TAB" in the TextBox control.
If this property is set to TRUE the automatic post back is enabled, otherwise FALSE. Default is FALSE.
Ex.if it's helpful to you then please check Accepted Asnwers
Thanks
SenthilkumarPosted Mar 21, 2012, 12:46 PM
The AutoPostBack is the property in the ASP.Net web server controls, which accepts the boolean(true/false) as value. When certain events happens in the controls which tells the browser whether it has to be posted back to the server or not.
The controls like DropDownList, TextBox will have the AutoPostBack value is false. Which means when event happens like ENTER, TAB, IndexChanged it will not posted back to the server.
Suppose we have the dropdownlist and based on the selection made it has to populate the result in the grid then we need to enable the postback property.
When we enable the property only it allows to execute the server side event.