By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.