I am new to asp.net/C# .I am trying to create a web application.
Below is my requirement.
I am trying to save a record on button click. Before saving the rec
You can use confirm box in JS like this
var ans = confirm ('Record already exist.Do you want to proceed?');
if(ans==true)
{
}
else
{
}
Secondly, to get the response in code behind, you can store the Yes/No value into a hidden field e.g.
document.getElementById('<%= hiddenField.ClientID %>').value = ans;