ZACKCORP Posted November 20, 2015 Share Posted November 20, 2015 Hello ! I am working on a few updates to a webpage and having some trouble achieving my desired result. Goal : Online user enters info on webpage (popup), clicks button to submit info (sent via email) and on the same click to submit i would like the webpage (popup) to close. Currently whats happening : User enters info, clicks submit, page redirects to another product page. Below is a snippet of code from the redirect (.aspx.cs)EmailClient.Send(mailMessage);//MessageLabel.Text = _successMessage;//MessageLabel.ForeColor = System.Drawing.Color.Red;Response.Redirect("~/Human-Resource-Build-a-Folder-7281-Series-P2984.aspx");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" /> I have tried a few different edits i have found on google but have been unsuccessful. The redirect function can be eliminated completely, and move to more of a window.close function if possible or a submit & close window function. Any help would be appriciated ! If you need to see more code i can post it ! Thanks !! 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