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

Querystring problems with +

Status
Not open for further replies.

dokken

Programmer
Mar 7, 2001
61
US
I have a popup window that takes a string as a parameter. I pass this parameter on the URL. The string contains a "+" character and it is being stripped when I read it via Request.QueryString from the popup page. server.URLEncode encodes the "+" to "%2B" and the querystring should convert it back. The problem I'm having is strURL gets translated back to containing the + char when it reaches openWindow. Does anybody know how I can solve this problem?
<tt>
strURL = &quot;Page.asp?TestName=&quot; & server.URLEncode (adoRsTests.Fields(&quot;Metric&quot;))
Response.Write &quot;<a href=&quot;&quot;javascript:eek:penWindow('&quot; & strURL & &quot;','&quot; & strWinFeatures & &quot;')&quot;&quot;>link</a>&quot;

Here is the Javascript function:

function openWindow( windowURL, windowFeatures ) {
//if window exists close it
if (popUpWindow) {
popUpWindow.close();
popUpWindow = null;
}
popUpWindow = window.open(windowURL, &quot;popUpWindow&quot;, windowFeatures );
popUpWindow.focus();
}
</tt>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top