Use Javscript below
<script language="javascript">
function ConfirmOnSummit()
{
if (typeof(Page_ClientValidate) == 'function')
{
if (Page_ClientValidate())
{
if(confirm("What Ever u what to confirm or run a Java Script
code?")==1)
return true;
else
return false;
}
}
}
</script>
Create tage in aspx page.
<span onclick="javascript
: return ConfirmOnSummit();"><asp:button
id="btnSubmit" runat="server" CausesValidation="False"
Text="Submit"></asp:button></span>
This Will surely work. It take all the advantage of Asp.Net
Thanks,
sswalia
MCAD, MCAD, OCA
"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:uI*************@tk2msftngp13.phx.gbl...
Hi
How can I run a java script function before a form is submited back to
the server.
What I wish to do is have a upload form that when a user clicks the submit
button a javascript function opens a second window after this the buttons
onclick event should be run.
Is any of this possible.