I want to run some javascript code and then some ASP.NET code.
I can do both function seperately by pressing two different objects. But I cannot to then off one object.
Below I have:
> An image which when I click runs a javascript function.
> A button which does the ASP.NET processing.
I want to run both the javascript and ASP.NET off a single click of the ASP button (btnsub_Click).
[PHP]
<%@ Page Language="VB" %>
<script runat="server">
Sub btnsub_Click(By Val Sender As Object, ByVal E As EventArgs)
If Page.IsValid Then
' Do Something
End If
End Sub
</script>
<html>
<head><script type="text/javascript">
javafunction() etc.. etc..
</script>
</head>
<a onclick="javafu nction()"><img src="graphic.gi f" /></a>
<asp:button id="btnsub" text="Submit" onClick="btnsub _Click" runat="server" />
[/PHP]
__
Does anyone know I can add "javafunction() " to the button click code?
Would appreciate any help.
Thanks
I can do both function seperately by pressing two different objects. But I cannot to then off one object.
Below I have:
> An image which when I click runs a javascript function.
> A button which does the ASP.NET processing.
I want to run both the javascript and ASP.NET off a single click of the ASP button (btnsub_Click).
[PHP]
<%@ Page Language="VB" %>
<script runat="server">
Sub btnsub_Click(By Val Sender As Object, ByVal E As EventArgs)
If Page.IsValid Then
' Do Something
End If
End Sub
</script>
<html>
<head><script type="text/javascript">
javafunction() etc.. etc..
</script>
</head>
<a onclick="javafu nction()"><img src="graphic.gi f" /></a>
<asp:button id="btnsub" text="Submit" onClick="btnsub _Click" runat="server" />
[/PHP]
__
Does anyone know I can add "javafunction() " to the button click code?
Would appreciate any help.
Thanks
Comment