Posted on: 3/29/2011 11:56:08 AM | Views : 263

Hi,
I've been trying to create a button that not only confirms that the user wants to submit a form but it also redirects.  I can't seem to get it to work properly.  I hope someone can point me in the right direction and explain what I'm doing wrong. 
Any help or insight would be appreciated! Thanks.
 Here is what I have as an example:
<script type="text/javascript"> function Redirect() { RedirectUrl("http://www.google.com"); } </script> <asp:Button ID="button1" runat="server" OnClientClick="confirm('Are you sure you want to submit this form?');Redirect();" Text="Submit /> ...

Go to the complete details ...