Jump to content

Button Help !


ZACKCORP

Recommended Posts

Currently when clicked, my button on my webpage submits users information and redirects to another webpage. Ideally I would like the user to click the button, have the information still submit, but have the window close instead of redirect

 

Below is a snippet of code from the button itself (.aspx)

<asp:Button ID="Submit" runat="server" Text="Submit Tab Titles/Colors" OnClick="Submit_Click" ValidationGroup="ContactUs" />
   <asp:Button ID="reset" OnClientClick="document.location.href=document.location.href;" Text="Reset" runat="server" />

 

Any help would be very appreciated !

 

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...