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

RBS picture RBS · Jan 2, 2009 · Viewed 8.5k times · Source

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 ?

Answer

rodbv picture rodbv · Jan 2, 2009

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.