469,945 Members | 2,331 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

Calling a javascript function on asp:button's click event

I have written a click event for asp:button and I want to
call a javascript function named setMethod() which I have
wrtten seperately. Please tell me how to do this.
Nov 20 '05 #1
1 7512
Cor
Hi Praveen,

A sample of a mailmessage with a button click

\\\
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.Button1.Text = "Send Mail"
Me.Button1.Attributes("onClick") =
"window.location='mailto:no*@non.com?subject=C or demo&body=I hope this
helps?';"
End If
End Sub
///
I hope this helps?
I have written a click event for asp:button and I want to
call a javascript function named setMethod() which I have
wrtten seperately. Please tell me how to do this.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rea Peleg | last post: by
7 posts views Thread by Lam | last post: by
3 posts views Thread by JV | last post: by
5 posts views Thread by csgraham74 | last post: by
4 posts views Thread by Israel Richner | last post: by
2 posts views Thread by =?Utf-8?B?RGF0YXNvcnQ=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.