using Response.Redirect

  • Thread starter Thread starter Mike P
  • Start date Start date
M

Mike P

I want write a method to send several strings to a webpage using
Response.Redirect (I'm trying to find out why my website keeps
crashing). If I write a method to do this I can obviously only do a
redirect once before the code in the method will finish executing.

How can do this? Would I need to use multithreading or something?


Cheers,

Mike
 
Hi,

Response.Redirect send a 403 page ( I think that is the number) to the
browser, meaning "the page was moved" and send the new URL to where the
browser should go.
It is not intended to be used as you are using it. You want to use
Response.Write instead

Cheers,
 
I think you misunderstood my question. I am sending a string to ANOTHER
page

e.g. Response.Redirect("default.aspx?mystring");
 
Hi,

Your original post did not say that clearly, you have to create them as
parameters, like this:

Response.Redirect("default.aspx?myvar=mystring&myvar2=mystring2");

later you can access it using Request["myvar"]

Cheers,
 
Back
Top