Andrew
asked on
Response.Write with querystring?
Can someone please help me figure out why I can get this to work:
Response.Write("<script>wi ndow.open( 'CCNew.asp ','_top'); </script>" )
but not this:
Response.Write("<script>wi ndow.open( 'CCNew.asp ?proxyfor= ' & Request.querystring('proxy for') & '&mode=' & Request.QueryString('mode' )','_top') ;</script> ")
TIA,
Andrew
Response.Write("<script>wi
but not this:
Response.Write("<script>wi
TIA,
Andrew
ASKER
hmmm...
Response.Write(String.Form at("<scrip t>window.o pen('CCnew .asp?proxy for={0}&mo de={1}_top </script>" , Request.querystring("proxy for"), Request.QueryString("mode" )))
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'String'
Response.Write(String.Form
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'String'
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you both!
'CCNew.asp?proxyfor='
try Repsonse.Write
(String.Format("<script>wi
the {0} . . . {1} . . . {n} get replaced with the extra parameters after the string in order.