T
Terry Olsen
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.
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.