how do i generate the page prerender event in visual studio 2005

  • Thread starter Thread starter Bjarke
  • Start date Start date
you have to type it in yourself in the InitializeComponent method. Yes -
just where it says "do not modify the contents of this method with the code
editor" !!

put

this.PreRender += new System.EventHandler(this.MyPage_PreRender);

if you're lucky it will auto-complete after you type the +=

Andy
 
actually I just remembered that I asked this very same question a while ago
and someone showed me this rather obscure way of doing it:

- open the page in design view
- right click on the background of the page
- select view component designer
- on the properties page you can now select the lightning bolt
- double click an event name to generate the code
 
VB is so much easier

Andy Fish said:
actually I just remembered that I asked this very same question a while
ago and someone showed me this rather obscure way of doing it:

- open the page in design view
- right click on the background of the page
- select view component designer
- on the properties page you can now select the lightning bolt
- double click an event name to generate the code
 
Back
Top