Web User Controls

Discussion in 'ASP .Net Building Controls' started by gover, Jul 8, 2007.

  1. gover

    gover Guest

    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
    (
     
    gover, Jul 8, 2007
    #1
    1. Advertisements

  2. gover

    Riki Guest

    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, Jul 8, 2007
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.