![]() |
|
|
|
#1 |
|
Posts: n/a
|
I am using Visual Web Developer 2005.
Can I use the button PostBackURL to open a second web form in a new window, instead of replacing the current page? Thanks Bill |
|
|
|
#2 |
|
Posts: n/a
|
Hi,
one way is to change form's target when posting <asp:Button ID="Button1" OnClientClick="form1.target='_blank'" runat="server" Text="Button" PostBackUrl="~/Default2.aspx" /> You just might also turn it back after posting, in case other buttons still continue posting on the same page. -- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke "bill" <> wrote in message news:... >I am using Visual Web Developer 2005. > > Can I use the button PostBackURL to open a second web form in a new > window, instead of replacing the current page? > > Thanks > Bill > |
|
|
|
#3 |
|
Posts: n/a
|
I'm pleased to report that I figured it out for my self!
In case anybody else cares, put <base target="_blank"></base> between the <head></head> tags of the source aspx page. PostBackURL is a good feature. -Bill "bill" <> wrote in message news:... >I am using Visual Web Developer 2005. > > Can I use the button PostBackURL to open a second web form in a new > window, instead of replacing the current page? > > Thanks > Bill > |
|
|
|
#4 |
|
Posts: n/a
|
Thanks Teemu, that is a good way to do it.
-Bill "Teemu Keiski" <> wrote in message news:... > Hi, > > one way is to change form's target when posting > > <asp:Button ID="Button1" OnClientClick="form1.target='_blank'" > runat="server" Text="Button" PostBackUrl="~/Default2.aspx" /> > > You just might also turn it back after posting, in case other buttons > still continue posting on the same page. > > -- > Teemu Keiski > ASP.NET MVP, AspInsider > Finland, EU > http://blogs.aspadvice.com/joteke > > "bill" <> wrote in message > news:... >>I am using Visual Web Developer 2005. >> >> Can I use the button PostBackURL to open a second web form in a new >> window, instead of replacing the current page? >> >> Thanks >> Bill >> > > |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HyperKore Hyper Kolor Laser-Etched Window Contest at Velocity Reviews! | Ian | Front Page News | 10 | 11-26-2009 02:12 PM |
| closing the child window and refreshing the parent window | Ane007 | The Lounge | 1 | 05-05-2008 06:54 AM |
| explores closes original window | laures | General Help Related Topics | 1 | 09-21-2007 09:47 AM |
| new window minimizes to taskbar | -D- | A+ Certification | 0 | 03-03-2007 12:07 AM |
| Window xp and startup disk | Raymond | A+ Certification | 2 | 10-22-2003 09:06 AM |