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 +=
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
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
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.