thanks for the reply...
I'm trying to get the user's time (hours and minutes).. and my code is in
the page load, not a button (sorry),... how can i call this function , not
to
show it in a messagebox, but to just store it... like:
dim x as string = javafunction()
i have 2 seperate function , 1 for hour and 1 for minute...
Dave Fancher said:
In your Page_Load event you can add a line such as the following:
[C#]
button.Attributes["onclick"] = "alert(myFunc());";
or
button.Attributes.Add("onclick", "alert(MyFunc());");
This will manipulate the HTML output to include the client side event
handler.
HTH
----
Dave Fancher
http://davefancher.blogspot.com
ACaunter said:
Hi there,
Is there a way to call a javascript function and return its value, from
inside an asp.net button ??