Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treat spaces in GET string with interdev grid

Status
Not open for further replies.

tvbruwae

Programmer
Aug 9, 2001
224
EU
Hi

I have an Inderdev grid with a column containing the following expression :

=&quot;<A href=PCDetails.asp?assetnumber=&quot; + [AssetTag] + &quot;&type=&quot; + [Category] + &quot;&confnr=&quot; + [Configuration] + &quot;>&quot; + [AssetTag] + &quot;</A>&quot;

This expression calls an ASP page with 3 different GET parameters. However, since the Category field in the database can contain spaces, the GET string shows only part of the Category field value (up to the first space) and no confnr value. I tried using Server.HTMLEncode([Category]) and including the string in quotes (...\\\&quot;&quot; + [Configuration] + &quot;\\\&quot;&...), but there was no difference. Does someone know how this can be solved?

Thanks

Tim
 
Found it. It seems I have to use Server.URLEncode(..) instead of HTMLEncode...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top