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

I want to change the text for ok/cancel buttons for the following code :

ScriptManager.RegisterStartupScript(this, GetType(), "Done", "javascript:AskConfirmation('" + "Click OK to continue and Cancel to rollback" + "');", true);

Please let me know how can this be accomplished.


Regards,
Pranav
Posted
Comments
RelicV 29-Apr-13 9:11am    
Hi Pranav, could you please let us know what is AskConfirmation() method is..? a builtin JS function or a 3rd party's function..? replace it wit confirm as below
"javascript:return confirm('Click OK to continue and Cancel to rollback');".

Sorry but I think that is not possible using the built-in confirm() dialogue. Your only options are the default. You can construct your own modal dialogue.
Refer this:-
http://jqueryui.com/...al-confirmation[^]
 
Share this answer
 
You can use jquery dialog for that :

http://jqueryui.com/dialog/#modal-confirmation[^]
 
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