Click here to Skip to main content
15,891,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added a button inside update panel and try to display a Message box.
It did not work.

What is the reason for it?

Any help on how to resolve this?
Posted
Updated 6-Oct-11 23:46pm
v4
Comments
P.Salini 7-Oct-11 0:43am    
Paste some code so that we can help
hitech_s 7-Oct-11 0:46am    
if you provide some code snippet we can help you asap
Dalek Dave 7-Oct-11 5:46am    
Edited for Readability.

I really didn't see any good reason for update panel to display a message box. Why you are not using JaVaScript / JQuery.
JQuery Dialogs are the better options.
 
Share this answer
 
this is because ur script is not registered in script-manager
u can use
scriptmanager.Registerstartupscript(Page,Page.gettype(),"ghghhh","'alert('hai')'",true);
 
Share this answer
 
v2
 if (System.Windows.Forms.MessageBox.Show("Do you want to Modify?", "Question", System.Windows.Forms.MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
{
//place ur code here
}
 
Share this answer
 
v2

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