What is ispostback in asp.net with example
Net page that tells whether or not the page is on its initial load or if a user has perform a button on your web page that has caused the page to post back to itself. The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Web Forms. Sign in to vote. User posted when i was studying asp.
Tuesday, May 29, AM. Forgot your password? Search within: Articles Quick Answers Messages. Tagged as. Stats Muhammad Taqi Hassan Bukhari Rate me:. Please Sign up or sign in to vote. Understand the Complete Scene of Postback in Asp. Introduction In the old HTML, the only way to make something updated on the webpage is to resend a new webpage to the client browser. Using the Code Post back is implemented with the use javascript in the client side.
Copy Code. Muhammad Taqi Hassan Bukhari. Web Developer Cogilent Solutions. Muhammad Taqi Hassan Bukhari is a Web Developer by profession, passionate towards open source software, education, and the intersection of both. He loves to read and explore anything open source.
He strongly believes that technology and the information about the technology should be available to everybody in their own language. Notice, that the city names in the DropDownList are duplicated. So, every time you click the button, the city names are again added to the DropDownList. Let's now understand the cause for this duplication. We know that all ASP. NET server controls retain their state across postback.
These controls make use of ViewState. So, the first time, when the webform load. Now, when the client clicks the button control, and the webform is posted back to the server for processing. During the Page initialization, ViewState restoration happens.
During this stage, the city names are retrieved from the viewstate and added to the DropDownList. PageLoad event happens later in the life cycle of the webform. During page load we are again adding another set of cities. Hence, the duplication.
Define RequiredFieldValidator? Net What are the major events in Global. Asax file? What is Event Bubbling in asp. What is Delay signing? What is the difference between in-proc and out-of-proc? A potentially dangerous Request. Form value was detected from the client. Mail to : feedback net-informations. All other trademarks are property of their respective owners.
SiteMap Terms About.