asked on
ASKER
<asp:Button
ID="btnDelete"
runat="server"
Text="Delete"
OnClientClick="return confirm('Are you sure want to delete this record?');"
/>
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
<asp:Button
ID="btnDelete"
runat="server"
Text="Delete"
OnClientClick="MyClinetSid
/>
The javascript code is:
function MyClinetSideFunction()
{
val ret = confirm('Are you sure want to delete this record?');
return ret;
}
From your client side function if it is returned true then MyServerSideFunction() will be triggered. Otherwise it won't get triggered.
I hope this helps.