Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
Can some one please tell me how to i practical of Page Life cycle of .net how to write event of page and where write like how to Dynamically define master page and themes and how to or where define value of view state and also in which event of life cycle please explain me it i am beginner of asp.net C#. thank you in advance 


What I have tried:

void page_preinit(object sender, eventargs e)
{
this.masterpagefile = "~/site.master/";
}

i wrote this code in master.cs page it it write or wrong and how to chech its work and like that i want to pratice all event with real value please help me
Posted
Updated 16-Jun-16 19:04pm
v2
Comments
Sinisa Hajnal 17-Jun-16 2:44am    
In general, you do not change master page "on the run". Yes, it is possible, but it is usually much easier to re-think your design.

1 solution

Way, way too much for a little text box! :laugh:
Start here: ASP.NET Page Life Cycle Overview[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900