Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
WebUserControl Events & Properties?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Terry Olsen, post: 1928510"] In an effort to create a QueryBuilder for a web page, I've created a WebUserControl. It can be seen here: [URL]http://boycot.no-ip.com/images/querybuilder.jpg[/URL] 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. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
WebUserControl Events & Properties?
Top