automatically generate event handler code?

automatically generate event handler code?

am 04.01.2008 03:11:26 von gouqizi.lvcha

Does VS2005 has the ability to generate event handler code in the code
behind? For example, I cannot find the UI to help me to create event
like Page_Init().

Tom

Re: automatically generate event handler code?

am 04.01.2008 05:43:36 von peter.bucher

Hello tom

> Does VS2005 has the ability to generate event handler code in the code
> behind? For example, I cannot find the UI to help me to create event
> like Page_Init().
write: "myObj.myEvent += " and press two times on ,

then, your eventhandler beiing created.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET

Re: automatically generate event handler code?

am 04.01.2008 21:13:02 von WesDavis

Peter:
> write: "myObj.myEvent += " and press two times on ,
>
> then, your eventhandler beiing created.

Doesn't that also have to be in (or no later than) a certain place relative
to the page event sequence / lifecycle? Or in the page class constructor?

I just thought it's worth asking.
--
Sr. Software Developer
SAIC
Sierra Vista, AZ