How to open new tab everytime on click single button

Posted by Patelpriyanka21 under VB.NET on 5/17/2011 | Points: 10 | Views : 8140 | Status : [Member] | Replies : 3
Hi...
I am Priyanka.
My problem is :
In my vb.net page there is one button and when i click on that button it open new page
now i want when i click on button then every time it open new tab ..


is it possible or not that i don't know so guide me for this.

Regards
Priyanka




Responses

Posted by: Akiii on: 5/17/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi..
chk the following link...

http://www.w3schools.com/tags/att_a_target.asp

Thanks and Regards
Akiii

Patelpriyanka21, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithadeepak on: 5/18/2011 [Member] Bronze | Points: 25

Up
0
Down
try this on aspx

<form id="form1" runat="server">

<div>
<asp:Button runat="server" ID="btn1" Text="submit" onclick="btn1_Click" OnClientClick="form1.target='_blank';" />
</div>
</form>

thanks,

Nitha Deepak

Patelpriyanka21, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Patelpriyanka21 on: 5/21/2011 [Member] Starter | Points: 25

Up
0
Down
Hi..Friends
Thankx for the reply
now my problem was solved..as per my requirement window.open('.aspx page name') worked..

Bye & take care
Priyanka

Patelpriyanka21, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response