Click here to Skip to main content
15,512,456 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
When I built ASP.NET page using VB code behind I can get the left menu of the page to select PageEvents and on the right side, I get all available events for the page(e.g PreInit,LoadComplete,SaveStateComplete etc.) . Same thing I can not do using C# code-behind and there are no other ways to write events, like In property window, I click event button and it lists all the events supported to page and then doubble-click any event and automatically that event structure is written in code-behind. Is there are any trick to write page's event structure automaticlly in C#.

1 solution

Hi Dinesh,
Another way is this :

Go somewhere between your class methods and type override and press space suddenly intellisense menu pops up and shows you all of unimplemented page events(because they are overridable).

Good Luck
Share this answer
Dinesh Ambaliya 11-Dec-11 12:18pm    
It is new tip for me.Thank you!,
But there is not events like prerender, load, unload!
Amir Mahfoozi 12-Dec-11 0:00am    
I can see them. Prefix an "On" to those mentioned events and you can see them. And only if you have already implemented them you can not see them. :)

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