I have an asp.net application, where the user would click a button and launch another page (within the same application). The issue I am facing is that the original page and the newly launched page should both be launched.
I tried response.redirect, but that tends to unload the original page.
Any suggestions?
Edited and fixed (thanks to Shredder)
If you mean you want to open a new tab, try the below:
This will keep the original page to stay open and cause the redirects on the current page to affect the new tab only.
-J
You should use:
This button post to the current page while at the same time opens
OtherPage.aspx
in a new browser window. I think this is what you mean with...the original page and the newly launched page should both be launched.
Use an html button and javascript? in javascript,
window.location
is used to change the url location of the current window, whilewindow.open
will open a new oneEdit: Ah, just found this: If the ID of your form tag is
form1
, set this attribute in your asp buttonIf you'd like to use Code Behind, may I suggest the following solution for an asp:button -
ASPX Page
Code Behind