Click to See Complete Forum and Search --> : How to implement javascript on button, C#?
teddyas
October 2nd, 2009, 01:29 AM
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.
HanneSThEGreaT
October 2nd, 2009, 01:44 AM
Is this on a Web Application or a Windows Forms Application ¿
teddyas
October 2nd, 2009, 02:19 AM
Web application
dannystommen
October 2nd, 2009, 04:07 AM
You've should have posted this question in the ASP.NET forum.
Anyway, the answer
<asp:Button ID="Button1" runat="server" OnClientClick="return confirm('Do you really want to enter?');" Text="Button" />
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.