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

Help for Error: Operator '&' is not defined for types 'String'

Status
Not open for further replies.

trickytr

Programmer
Joined
May 21, 2005
Messages
6
Location
TR
Hi everyone

I have got an error message when I try to browse my page.I think it might be because of the code "Request.Form"


BC30452: Operator '&' is not defined for types 'String' and 'System.Collections.Specialized.NameValueCollection'.

If Session("PASSWORDACCESS") = "No" Then
THISPAGE = Request.ServerVariables("script_name")
Else
THISPAGE = Request.ServerVariables("script_name") & "?" & Request.Querystring & Request.Form
End If

Is there a way to correct this problem or any suggestions to make it in a different way.

Thanks A lot
 
THISPAGE = Request.ServerVariables("script_name") & "?" & Request.Querystring & Request.Form
You haven't said which querystring and which form values you want...


--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Looks, like you are trying to get all of your values to record in log maybe.
Try one of these.

THISPAGE = Request.ServerVariables("script_name") & "?" & Request.Querystring.ToString & "&" & Request.Form.ToString

THISPAGE = Request.URL.ToString & "&" & Request.Form.ToString

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top