Buy Questpond's video subscriptions on
huge discount
.
Online: 3916
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
What happend in Page_init()
Posted by
Bravi
under
ASP.NET
on 9/29/2009 | Views : 5951 | Status :
[Member]
| Replies : 2
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
In page life cycle what happen exectly on Page_init()
Thanks&Regards,
B Ravi.
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Rtpharry
on: 9/29/2009
[Member]
[MVP]
Bronze
0
Whatever code you put in there :)
The pre_init event is fired early on the page life cycle, it is a stage where you can make changes to certain parts of the page before the controls and that are setup. One common example of this is if you wanted to change the masterpage using the code behind. After the pre_init event (in page_load for example) it is not possible to change the masterpage - it has already been setup.
Generally if you are looking for something in the MSDN docs then it will make it clear if you have to put it in pre init.
To get more information about the types of events that are fired each time a page is requested and also the order they are fired in I suggest doing a search for "asp.net page lifecycle" as this is the collective name for the process.
http://www.google.co.uk/search?q=asp.net+page+lifecycle
Bravi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Vuyiswamb
on: 9/29/2009
[Member]
[MVP]
[Administrator]
NotApplicable
0
Rtpharry is Correct. This is where you initialize what ever you want. To programmers who are using SQLDatasource Control, you can initialize its Connection String there.
Thank you for posting at Dotnetfunda
[Administrator]
Bravi
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...