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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL Encoding

Status
Not open for further replies.

tsuable

Programmer
Feb 2, 2005
41
US
Hi,

my parameter is passed as

CenterList=%2873%2C12%29

it should be passed as

CenterList=(73,12)

here's whats in the method....

sReportLink = "viewrpt.cwr?id=" & ReportID & "&apstoken=" & crToken & "&init=html_frame:connect"

For Each oSessionParam In Session.Contents
If Left(LCase(oSessionParam), 8) = "promptex" Then
params = Mid(oSessionParam,12,len(oSessionParam) - 1)

sReportLink = sReportLink & "&" & "promptex-" & params & "=" & Session.Contents.Item(oSessionParam)
End If
Next

' Response.Write(sReportLink)

Response.Redirect(sReportLink)

=======

I tried this...

sReportLink = sReportLink & "&" & "promptex-" & params & "=" + server.urlencode(Session.Contents.Item(oSessionParam))

but it still passes the parameter like this...

CenterList=%2873%2C12%29

appreciate your help!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top