Problem in Redirecting a .aspx Page

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2007
Posts: 26
Reputation: BalagurunathanS is an unknown quantity at this point 
Solved Threads: 0
BalagurunathanS's Avatar
BalagurunathanS BalagurunathanS is offline Offline
Light Poster

Problem in Redirecting a .aspx Page

 
0
  #1
May 22nd, 2007
Dear All...

I have two aspx Pages..I am having first page as a home page.I have various controls bounded in the home page.when i click the button control in the home Page,the Second Page is opened but it is Opening in an new window..Instead i need the second Page to be opened in the same window(i.e the second Page should mask the home Page)..
I am using javascript code to redirect..The code is as follows...
window.open("page2.aspx?username=" + lstruser)

I need script to redirect..
Someone help in this Regard...

Regards,
Balagurunathan s
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 6
Reputation: ckaneta is an unknown quantity at this point 
Solved Threads: 1
ckaneta ckaneta is offline Offline
Newbie Poster

Re: Problem in Redirecting a .aspx Page

 
0
  #2
May 22nd, 2007
window.open opens in a new window.
use document.location to load a new page in same window
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Problem in Redirecting a .aspx Page

 
0
  #3
May 22nd, 2007
of course it is opening in a new window, you are using window.open.

use
  1. document.location = "page2.aspx?username=" + lstruser
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC