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

A

Andy Fish

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
 
A

Andy Fish

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
 
J

Just Me

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top