DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us