I have a c# asp.net page as created in vs2005 (i.e. with auto event wireup)
and I want to add a pre-render event to it i.e..
protected void MyPage_PreRender(object sender, EventArgs e)
Is there any way other than having to type in all this? It seems very prone
to mis-typing or cut-and-paste errors.
I'm sure there must be somewhere I can just click and select the event I
want to add, but I can't find it anywhere.
Andy
>I have a c# asp.net page as created in vs2005 (i.e. with auto event wireup)
>and I want to add a pre-render event to it i.e..
[quoted text clipped - 8 lines]
>
> Andy
I'll hope in advance that somebody will prove me wrong hare, but in terms of
automatically creating page level event procedure shells, it appears that
you must do it manually.
Andy Fish - 05 Jun 2007 12:07 GMT
>>I have a c# asp.net page as created in vs2005 (i.e. with auto event
>>wireup) and I want to add a pre-render event to it i.e..
[quoted text clipped - 12 lines]
> of automatically creating page level event procedure shells, it appears
> that you must do it manually.
then prepare yourself for a handy hint. This was found by a colleague
(almost by accident)
- open the page in design view
- right click on the background of the page
- select view component designer
and now the properties window shows the server properties for the page and
allows you to select events.
Andy