By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,812 Members | 1,650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,812 IT Pros & Developers. It's quick & easy.

using Response.Redirect

P: n/a
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Mike P" <mr*@telcoelectronics.co.uk> wrote in message
news:eH**************@TK2MSFTNGP15.phx.gbl...
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2

P: n/a
I think you misunderstood my question. I am sending a string to ANOTHER
page

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

P: n/a
Hi,

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

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

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

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Mike P" <mr*@telcoelectronics.co.uk> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
I think you misunderstood my question. I am sending a string to ANOTHER
page

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.