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:
Printable View
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:
I suspect the problem is this: "Request.Form" I don't thin .Form is a string, but an object....
-tg
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
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.
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
Moved to the AsP.NET forum
It's probably the querystring bit the user wanted, so you'd use Request.QueryString and its properties.