Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > WebUserControl and design time support

Reply
Thread Tools

WebUserControl and design time support

 
 
Christian H
Guest
Posts: n/a
 
      09-30-2005
Hello,

I've just created a WebUserControl that consists of a few other controls
such as DropDownList, TextBox and Button.
Based on the information entered in the DropDownlist, and TextBox, the
Button.onClick event quries a database, and returns a DataTable.

Because I'm going to use this control different places, and bind the
DataTable in different ways (sometimes a datagrid, sometimes repeater) , I
added a delegate (OnButtonSearchClick) that handles the Button.onClick
event. The delagate also has a custom ButtonSearchEventArg to make things a
little easier.
This way I can add my WebUserControl to different Pages, hook up a
ButtonSearchClick event to the control, and use the ButtonSearchEventArg to
display my DataTable the way I want.

Now, this all works just fine, but I'm having a bit trouble with Design
support for my WebUserControl.
How can I get my delegate to appear in the Properties->Events toolbox window
?

Right now, I have to do it by hand , by writing
myControl.ButtonSearchClick+=new ButtonSearchEventHandler(...)

Is there any way of getting design time support for delegates, (and
properties as well ), for a WebUserControl ?

Thanks
Christian H.



 
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
Is time.time() < time.time() always true? flamesrock Python 8 11-24-2006 06:51 AM
databinding and webusercontrol =?Utf-8?B?cm9kY2hhcg==?= ASP .Net 2 10-25-2006 06:42 PM
ResourceManager in WebUserControl and WebForm DagoFlores ASP .Net 0 05-18-2005 11:19 PM
Problems with properties on WebUserControl and Repeater Michael Groeger ASP .Net 2 05-09-2005 12:45 PM
WebUserControl and JavaScript Arun ASP .Net 2 07-14-2004 09:30 AM



Advertisments