[thelist] Using variables with Response.Redirect

Ken Schaefer Ken at adOpenStatic.com
Fri Dec 23 16:56:42 CST 2005


When you sent this message originally, did it include the doubled up URLs
(one inside, and one outside the < >)?

If so, then that's your problem. If not, what is the error you are getting?

Cheers
Ken

: -----Original Message-----
: From: thelist-bounces at lists.evolt.org [mailto:thelist-
: bounces at lists.evolt.org] On Behalf Of Ryan Rushton
: Sent: Saturday, 24 December 2005 5:02 AM
: To: thelist at lists.evolt.org
: Subject: [thelist] Using variables with Response.Redirect
: 
: I'm trying to replace a hardcoded string with a variable as follows:
: 
: // THIS WORKS //
: private void validate() {
:    Response.Redirect ("http://www.mysite.com/images/image.gif
: <http://www.mysite.com/images/image.gif>", true);
: }
: 
: // THIS DOES NOT //
: string baseURL = "http://www.mysite.com <http://www.mysite.com>";
: 
: private void validate() {
:    Response.Redirect (baseURL + "/images/image.gif", true);
: }
: 
: I'm new to ASP.NET ... could someone tell me what I'm doing wrong above?




More information about the thelist mailing list