Intellisense and user control events

M

Michael Carr

I am trying to add a user control to a web form and implement one of the
control's events. However, when I add the user control to the form,
intellisense doesn't seem to detect it as a control. Even if it does, it
doesn't detect the control's events because when I switch to Designer view
to implement the event, there are no events listed for the control in the
properties box.

With VS 2003 I used to just implement events by manually adding the
<usercontrol>.OnLoad += ... to the Page_Init codebehind function and let
Intellisense create the function template for me. With VS2005, where
Microsoft wants me to put all my event hooks in the HTML (which I agree
with), unfortunately it looks like I also now have to create all the
codebehind event implementation structure myself. Is there any way around
this?

Michael Carr
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top