468,268 Members | 1,728 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

WebUserControl Events & Properties?

In an effort to create a QueryBuilder for a web page, I've created a
WebUserControl. It can be seen here:
http://boycot.no-ip.com/images/querybuilder.jpg

I load one control initially in the Page_Load using this code:
QueryBuilderPlaceHolder.Controls.Add(LoadControl(" QueryBuilder.ascx"))

I would like to have a callback routine on the main page for events such as
when the user changes the "And/Or" DropDownList. If the user changed it to
"And" or "Or" then I'd load another control. If the user changed it to
Nothing, then I'd remove the next control.

I created a public event (Public Event AndOrChange(ByVal AndOr As String))
in the WebUserControl and then Raised it (RaiseEvent
AndOrChange(ddlAndOr.Text)) in the DropDownList_SelectedIndexChanged
routine.

However, the event is not visible in the main web page.

I'd also like to be able to read the QueryString segment from each control
via a property.

I need advice. Am I on the right course? Or is there a better way?

Thanks.
Sep 7 '06 #1
0 803

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Christian | last post: by
reply views Thread by Mike Levin | last post: by
4 posts views Thread by Chris | last post: by
1 post views Thread by DichkoSoft | last post: by
reply views Thread by Christian H | last post: by
2 posts views Thread by Oren | last post: by
reply views Thread by Giovanni | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.