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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting to a frameset

Status
Not open for further replies.

wuxapian

Programmer
Jun 13, 2001
52
GB
Can anyone help me. I am trying to redirect from an asp file to a frameset. When I do the redirect

Response.Redirect("index.asp?passRef=rsJobs('refNum')&pageTo=displaySave2.asp")

I am getting the error message:

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

which suggests to me that it isn't reloading the frameset into the main browser window.

I think I am missing some fundamental point here, can anyone help?

Wuxapian.
 
First of all

Response.Redirect("index.asp?passRef=rsJobs('refNum')&pageTo=displaySave2.asp")

is not correct

it should be

Response.Redirect("index.asp?passRef="& rsJobs('refNum') &"&pageTo=displaySave2.asp")

You should concatenate string and variables properly. Rushi Shroff Rushi@emqube.com
"Life is beautiful."
 
The reason you are getting your HTTP headers error message, is because you are trying to do the response.redirect after HTML code has already been executed. You need to put the following line at the top of your code:

Response.Buffer = True


This will allow you to redirect from anywhere in the page. Brett Birkett B.Comp
Systems Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top