Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using ajax "ModalPopupExtender".when i clcik edit button in gridview i want to get popup without postback. Any suggestions ?

What I have tried:

ASP.NET
<<asp:Panel>

<asp:panel/>

<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" BehaviorID="ModalBehaviourAdmin"
                      runat="server" PopupControlID="popupPanel" CancelControlID="cancelbutton" Enabled="True"
                    TargetControlID="HiddenField2" BackgroundCssClass="modalBackground">




In row command i'm calling

this.ModalPopupExtender1.Show();
Posted
Updated 9-May-16 22:11pm
v3
Comments
Sinisa Hajnal 10-May-16 4:18am    
What have you tried? Did you read MS documentation?

1 solution

 
Share this answer
 
Comments
rajah rajah 10-May-16 5:16am    
Thanks for your reply tadit.
But my link is in gridview when click on "Edit" link i needs to show popup.I tried with the solution given by you .but this not getting values to the dropdown which is inside the panel.
This is just to open the modal. To assign values to controls inside the panel, you have to do it explicitly before opening the modal. This is not related to modal open. That is completely different.

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