|
-
October 2nd, 2009, 01:29 AM
#1
How to implement javascript on button, C#?
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.
-
October 2nd, 2009, 01:44 AM
#2
Re: How to implement javascript on button, C#?
Is this on a Web Application or a Windows Forms Application ¿
-
October 2nd, 2009, 02:19 AM
#3
Re: How to implement javascript on button, C#?
-
October 2nd, 2009, 04:07 AM
#4
Re: How to implement javascript on button, C#?
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" />
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|