![]() |
| |||||||
| Sponsored Links |
![]() | « Previous Thread | Next Thread » |
| | LinkBack (1) | Thread Tools | Display Modes |
#1
| ||||
| ||||
| Hi All, I have a field "Status" where some of the data is: -In R&M This is the status field where the data is stored. I can get results when I search the status field using the "In R&M" selection but I'm passing the status when i'm exporting to excel file, like below. Code: location.href = "ResultsExcel.asp?RegionName=<%= sRegion %>&District=<%= strDistrict %>&Status=<%= strStatus %> Code: http://server/folder/ResultsExcel.asp?RegionName=&District=&Status=In R&M Code: strStatus = Replace(Request("Status"),"&","& amp;")
Any help/suggestions is greatly appreciated. |
| Sponsored Links |
|
#2
| ||||
| ||||
| You need to use Server.UrlEncode() to encode the querystring.
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.Join our Folding team: DeveloperBarn Folding |
| The Following User Says Thank You to jmurrayhead For This Useful Post: | ||
Rebelle (June 17th, 2008) | ||
|
#3
| ||||
| ||||
| Thanks JMurrayhead!!!! Using this now and all seems to be good. Code: location.href = "ResultsExcel.asp?RegionName=<%= sRegion %>&District=<%= strDistrict %&Status=<%= Server.UrlEncode(Request("Status")) %>
|
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.developerbarn.com/asp-development/132-issue-ampersand.html | ||||
| Posted By | For | Type | Date | |
| DeveloperBarn Forums - ASP Help, ASP.Net Help, PHP Help, SQL Help, Tutorials, Windows Help | This thread | Refback | April 26th, 2008 09:34 AM | |