468,532 Members | 1,639 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,532 developers. It's quick & easy.

WebUserControl and design time support

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.

Nov 19 '05 #1
0 991

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by danielhardman | last post: by
reply views Thread by Mike Levin | last post: by
1 post views Thread by Serdar Kalaycę | last post: by
reply views Thread by Giovanni | last post: by
reply views Thread by YellowFin Announcements | last post: by
reply views Thread by Klaus Jensen | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.