Groups | Blog | Home
all groups > vb.net > january 2004 >

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



Praveen Ladwani
1/12/2004 11:54:03 PM
I have written a click event for asp:button and I want to
call a javascript function named setMethod() which I have
Cor
1/13/2004 9:04:22 AM
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:non@non.com?subject=Cor demo&body=I hope this
helps?';"
End If
End Sub
///
I hope this helps?
[quoted text, click to view]

AddThis Social Bookmark Button