I have created one application in asp.net with vb.net , in that one java script msg shows,
I want to add Yes & No button option in javascript alert mesbox.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Feb 10, 2015, 6:18 AM
http://www.aspsnippets.com/Articles/Confirmation-Confirm-box-with-Yes-No-Buttons-Options-using-AJAX-Modal-Popup-Extender-in-ASPNet.aspx
or
use
onpage_load
{
btndelete.Attributes.Add("onclick", "javascript:if(confirm('Are you sure you want to delete?'))return true; else return false;")
}
keyurPosted Feb 10, 2015, 6:17 AM
You can use below code