Javascript confirm popup in ASP.NET
1 Answers
To display confirm box in asp.net by using javascript use below code to display confirm box and select ok or cancel button
< script type=”text/javascript” >
function ConfirmMessage()
{
var result = confirm(‘select Ok or Cancel’);
if(result)
{
document.GetElementById(”<%=Button1.ClientID%>”).click();
}
}
< /script>