Plus sign in strings

  • Thread starter Thread starter Frederik Vanderhaeghe
  • Start date Start date
F

Frederik Vanderhaeghe

Hi,

In my asp.net page i go to a link with parameters. The parameters are
searched in a database table. One of them is 'Site+Pictures' when I add this
parameter to the link it cuts of and it doesn't work, because of the + sign,
what can I do so that it doesn't cut off?

Fré
 
You have to url-encode the value that you put in the link. The plus
character is used to put a space in an url, so your value will be
interpreted as "Site Pictures" when it's recieved.

Use the Server.UrlEncode method to encode the string.
 
Then I get the following error when my report wants to load (i use sql
server 2000 reporting services):
a.. The path of the item
'/StatistiekenSites/Sites_BezPerSitePerJPerM_I&year=2006&site=/sites/FTP/Site+Pictures'
is not valid. The full path must be less than 260 characters long, must
start with slash; other restrictions apply. Check the documentation for
complete set of restrictions. (rsInvalidItemPath) Get Online Help

Fré
 
I don't see any question mark character (?) to separate the url from the
query string.

You have slashes (/) in the value, are they url encoded?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top