ZACKCORP Posted November 23, 2015 Share Posted November 23, 2015 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 More sharing options...
justsomeguy Posted November 23, 2015 Share Posted November 23, 2015 One option would be to have it output some Javascript to close the window using window.close after the form is processed. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now