Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have stuck in a problem and i am working on this last 10 days but i din't get any optimal solution . please help me out.

Problem:

I have an aspx page with one dropdownlist, one hyperlink, one modal popup extender and 4 user control registered on aspx page.
On the basis of selected value of dropdownlist i have to show one user control from 4 user controls at a time as modal popup. On modal popup on click of OK button i want to return a List<generic> data source to my parent page.

But i am not able to change the popup control id of modal popup at run time i.e. by server side code.

Please suggest me how can i achive thisOR any other way to do the same thing, it would be very helpful for me.
Its very urgent for me.

TIA.

Avinash
Posted
Updated 4-Sep-12 3:03am
v2
Comments
Mohamed Mitwalli 4-Sep-12 8:35am    
Could you share your code ?

the easiest thing to do is to insert the 4 Controls in 4 different ModalPopup extender.
Depending dropdown value selected, you display one panel or other.

is not very elegant as a solution, but it is quick and easy
 
Share this answer
 
Yes,It is not a big task , you can add four ModalPopup extender in your page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900