Hi,
I would like to implement a javascipt prompting user when they click on the button. For e.g. "Do you really want to enter?"
Thanks.
Printable View
Hi,
I would like to implement a javascipt prompting user when they click on the button. For e.g. "Do you really want to enter?"
Thanks.
Is this on a Web Application or a Windows Forms Application ¿
Web application
You've should have posted this question in the ASP.NET forum.
Anyway, the answer
Code:<asp:Button ID="Button1" runat="server" OnClientClick="return confirm('Do you really want to enter?');" Text="Button" />