Log in

View Full Version : ASP submit button in new window



gmoney6
08-29-2011, 08:57 PM
I have a form. It lets the user choose a car Make, Model, and Year.
When the submit button is clicked it returns the results.
Problem is I want the submit button to return the results in a new window, not the existing one.

I added target="_blank" to the form id as shown below

<form id="Form1" target="_blank" method="post" runat="server">


this opens a new window, but each time an item is selected. So when you choose a Make it opens a new window and then the same for the Model and year.

How can i get it to only open the new window when the submit button is pressed?

I tried adding the target="_blank" to the asp but it did nothing

<asp:Button id="btnSubmit" target="_blank" runat="server" Text="Find My Vehicle Request"></asp:Button>

Any help is appreciated. I tried it on my own for almost 2 hours

gmoney6
08-31-2011, 05:50 PM
150 views no ideas? need help ;l

gmoney6
09-02-2011, 06:13 PM
another 100 views, no answer. Please!!!

djr33
09-02-2011, 06:18 PM
Most of the views may be from bots, or users who don't know the answer.
Honestly, the ASP section of this forum is not very active so you may get an answer faster at a forum that focuses more on ASP. For questions about CSS, JS, PHP, etc., we'll be able to help, though.

It appears to me that the form is actively processing, so you would need to stop that from happening. Of course there may be an alternative to tell ASP to wait, but I don't know what that is. You could also use Javascript to attempt this, but I don't know how it would interact with the ASP.

gmoney6
09-02-2011, 07:32 PM
thanks for the head up : )