Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.Redirect() to open new browser window....

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I'm hoping this is a simple problem...
I tend to make use of Response.Redirect to navigate between pages within my web application.

In a few instances I want to be able to navigate to a different page - but in the scope of a new browser window.
How can I do this?
I want this to happen when the user clicks a standard asp button control.

I'm using ASP.NET with C# code.

Any help would be appreciated.
Thanks
Steve
 
You'll need to use the javascript window.open method to accomplish this...

Code:
window.open("[URL unfurl="true"]http://www.google.com","Google")[/URL]
 
to elaborate of KDavie's post. Response.Redirect is an action on the server. javascript is happening on the client. I recommend researching the http request/response model to understand how http works. this is give more insight into the client/server model for web development. Also research the asp.net page life cycle. this is unique to webforms. It's fundamental webform development.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top