Page.PreLoad event is not displayed in visual studio

I am wondering why I do not see all the events on the Visual Studio 2008 page, when I click on the combobox of events, only the page_load event is present there. What can I do to view all the page life cycle events in combo, so I can just click it to create an event template?

+3
source share
1 answer

here is the page life cycle: http://msdn.microsoft.com/en-us/library/ms178472.aspx

you cannot see events because they have not yet been written on the code page, you must write them yourself (if you mean the combined field in the code behind the top page)

AutoEventWireup = "true", :

protected void Page_PreLoad(object sender, EventArgs e)
{
   // handle code
}
+7

Source: https://habr.com/ru/post/1709432/


All Articles