Search code examples
javascriptasp.netbuttonconfirmation

How to display Yes/No Button in asp.net page using Javascript


I have to display yes/no button on some condition on my asp.net page , I used windows.confirm() to display that but windows.confirm displays Ok/Cancel Button , Is there any way I can display Yes/No Button in asp.net page instead of Ok/Cancel using Javascript ?


Solution

  • If you want to keep it simple, just check some of the jQuery or YUI plugins, you can get that up and running with a couple of lines of code.

    For example, this one uses jQuery and this one uses YUI.