|
|
|
start date: Sat, 7 Jul 2007 19:48:00 -0700,
posted on: microsoft.public.dotnet.framework.aspnet.buildingcontrols
back
| Thread Index |
|
1
gover
|
|
2
Riki
|
Web User Controls
Hello,
I have created a user control and declared a public event that I my user
control raises. When I add my user control to a page, however, and click
properties, I don't see the 'ligning bolt' and cant specify an event handler
via the vs2005 poperties panel. I can add the event handler in code (using
myEvent += MyHandler) but i was hoping to get this to work in the vs2005 IDE
like it does for the standard web controls.
Is this behavior inherent in Web User Controls, or is there a way to get
the lighning bolt to show up when a user control is dropped onto a page.
Thanks
(
Date:Sat, 7 Jul 2007 19:48:00 -0700
Author:
|
Re: Web User Controls
gover wrote:
> Hello,
> I have created a user control and declared a public event that I my
> user control raises. When I add my user control to a page, however,
> and click properties, I don't see the 'ligning bolt' and cant specify
> an event handler via the vs2005 poperties panel. I can add the event
> handler in code (using myEvent += MyHandler) but i was hoping to get
> this to work in the vs2005 IDE like it does for the standard web
> controls. Is this behavior inherent in Web User Controls, or is
> there a way to get the lighning bolt to show up when a user control
> is dropped onto a page.
The "lightning bolt" is not (yet) supported for user controls in Visual
Studio.
You could always change your user control into a custom control, that will
make it work.
--
Riki
Date:Sun, 8 Jul 2007 09:11:05 +0200
Author:
|
|
|