|
-
Sep 16th, 2005, 10:43 AM
#1
Thread Starter
Fanatic Member
Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' and '
im converting an asp to aspx
the below line of code is my next problem
Code:
bstrURI = "https://" & Request.ServerVariables("SERVER_NAME") & "/premium/smsmt.asp?" & Request.Form
Line 23:
it works 60% of the time, all the time.
-
Sep 16th, 2005, 10:52 AM
#2
Re: Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' and '
I suspect the problem is this: "Request.Form" I don't thin .Form is a string, but an object....
-tg
-
Sep 16th, 2005, 11:05 AM
#3
Thread Starter
Fanatic Member
Re: Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' and '
hmmmmmmmm
any possible solutions to this,
im actually trying to change an asp to webform aspx
doing one line at a time,
been searching the web on possible solutions but nout mush happenin,
im at line 22 now
only another 80 to go woho
it works 60% of the time, all the time.
-
May 22nd, 2009, 10:50 AM
#4
New Member
Re: Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' a
For anyone who stumbles onto this post the BC30452 is a datatyping issues. When your code is compiled it is either getting confused or flat out can't do something regarding your datatypes. Try casting your variables. One way to do this is
ctype(myVar, dataType)
So if myVar contains a string datatype and you want to a number comparison on it
ctype(myVar, integer)
will convert it to an interger (as long as it is something that can be converted to a number, if not you will get an error.
-
May 22nd, 2009, 12:23 PM
#5
Re: Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' a
It goes a bit more beyond that.... the Form object in this case was a form posted from the previous page.... so there isn't a way to cast it to anything else... because it's going to be composed of other objects....
Also... considering this post is three and a half years old..... I'm not sure it's a problem anymore....
-tg
-
May 25th, 2009, 08:44 AM
#6
Re: Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' a
Moved to the AsP.NET forum
-
May 25th, 2009, 09:00 AM
#7
Re: Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' a
It's probably the querystring bit the user wanted, so you'd use Request.QueryString and its properties.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|