Tuesday, October 4, 2011

Page_init Vs Page_Load

• Page_Init: During this event, you can initialize values, connect any event handlers that you may have, create any dynamic control etc.
This event is executed only once when the page is loaded and not on the postback


• Page_Load: This event is executed on all the postbacks. During this event, you can perform a series of actions to either create your ASP.NET page for the first time or respond to client-side events that result from a post. The page and control view state have been restored prior to this event. Use the IsPostBack page property to check whether this is the first time that the page is being processed. If it is the first time, perform data binding.

No comments:

Post a Comment

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...