Click here to Skip to main content
15,922,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
how can we shoe an ajax modal popup panel ?
I have a dropdownlist and a button. Based on the selections from dropdownlist, how is it possible to show a modl popup window ?

In the Dropdownlist are items "Passed" and "Failed". If the item selected is "Passed", then on button click, how can I show a modal popup panel that show some details in gridview ?

Based on some tutorials, I could show popup on button click, but I cannot bind it to the dropdownlist selection.


NB: I have referred this link
Posted
Updated 27-Oct-13 4:13am
v2
Comments
Mahesh Bailwal 27-Oct-13 10:08am    
Please share your code.
Gee Varghese 27-Oct-13 10:12am    
As of now, the code I have used is here http://www.aspsnippets.com/Articles/Building-Modal-Popup-using-ASPNet-AJAX-ModalPopupExtender-Control.aspx

Hi

The followin link may help .

http://forums.asp.net/t/1498939.aspx[^]

Kindly mark it as answer if it resolves your question .
 
Share this answer
 
Use the dropdown list event onchange to show when the user select any item from the dropdownlist.

The onchange event is a javascript event.

Or we can use the c# SelectedIndexChanged event and you can add the same code you have used inside button click event also in the SelectedIndexChanged event. If your buttion click event is in javascript add the same code inside the javascript onchange event.

Use the following link. It will show how to show the popup on dropdownlist click

Display popup on selecting drop down list item[^]
 
Share this answer
 
Comments
Member 11396520 25-Jan-15 9:28am    
i want to show modal popup when iam selecting the one of the list item in drop down in mvc....
Example:i have dropdown like select mother tounge...in drop down i have telugu,hindi,english..if iwant to add another language kanada when iam selecting others opition iwant to get pop up....any one help me to solve this

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