Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple user control issue

Status
Not open for further replies.

sds814

Programmer
Feb 18, 2008
164
US
On a user control, I have a dropdown list (ddlCriteria), a listbox, a modal popup (mpeCriteria) that has a checkbox list (chkCriteria), and a dropdown list that filters (ddlFilterCriteria) the checkbox list. I have added this user control twice on the main aspx page.

The page loads with two user controls having two different criteria. A user can decide to select criteria by choosing the selection option from ddlCriteria, which opens the modal popup. From the modal popup, the user can use ddlFilterCriteria to choose a specific criteria or browse through chkCriteria. After choosing criteria and clicking on the submit button, ddlCriteria is set to invisible and the listbox appears with the chosen criteria.

The issue is that when the user chooses to use ddlFilterCriteria and select a criteria, after clicking the submit button, ddlCriteria on the second usercontrol is hidden/invisible. However, if the user chooses criteria from chkCriteria and then clicks submit, then ddlCriteria in the second user control doesn't become hidden/invisible.

Any suggestions on how to resolve this? Thanks.
 
The problem was that in ddlFilterCriteria I had a mpeCriteria.Show(). Even though after clicking the submit button and showing the listbox, the modal had to be hidden so the other usercontrol can be viewed.
 
You have mentiond modal popups in previous posts and now the .Show() method. Are you referring to a windows application?
 
sorry about that, I was referring to AJAX. There is a General AJAX forum, but I was told that it isn't specific to Microsoft Asp.NET AJAX.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top