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
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