Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Web User Controls

Reply
Thread Tools

Web User Controls

 
 
gover
Guest
Posts: n/a
 
      07-08-2007
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
(
 
Reply With Quote
 
 
 
 
Riki
Guest
Posts: n/a
 
      07-08-2007
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net 5 01-10-2007 10:50 AM
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net Building Controls 4 12-21-2006 02:50 AM
using javascript in User controls to access server controls of the user control Faizan Ahmed ASP .Net Building Controls 1 01-04-2005 04:09 PM
using javascript in User controls to access server controls of the user control Faizan Ahmed ASP .Net Web Controls 1 01-04-2005 04:09 PM
IntelliSense on Web User Controls and Web Custom Controls Axel Dahmen ASP .Net 1 11-12-2003 06:12 AM



Advertisments