Print Page | Close Window

Spaces Appearing Around Variable Output

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=28898
Printed Date: 28 March 2026 at 9:08am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Spaces Appearing Around Variable Output
Posted By: kennywhite
Subject: Spaces Appearing Around Variable Output
Date Posted: 11 October 2010 at 4:16pm
I set the "Issue" variable with data entered into the database, so the page knows where to redirect the user after the entry is added. 

There are no spaces before or after the data in the database, but when the page is redirected I get a "Page not found" and %28return%29details.asp is what appears in the address bar.


Response.Redirect  "(" & Issue & ")details.asp"

What am I doing wrong?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 12 October 2010 at 11:23am
You can remove trailing spaces uses Trim, however in your case you are including brackets in your redirect:-

Response.Redirect (Issue & "details.asp")

Or:-

Response.Redirect (Trim(Issue) & "details.asp")


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net