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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
keyurRank #5,481 · 298 reputationPosted Feb 10, 2015, 1:17 AM EST
You can use below code
Khargesh RajputRank #616 · 3.9K reputationPosted Feb 10, 2015, 1:18 AM EST
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;")
}