diban
Sep 16th, 2005, 05:10 AM
Hi
I am using a variable in my calc.aspx file to do some calculations:
Dim mLogKey as Long
Dim mBase as Long
mLogKey = Request.QueryString("LogKey")
mBase=Request.QueryString("Base")
I get my value from another form in another file that calls this file as something like this:
action="calc.aspx?LogKey=21&Base=3.14"
I get the following compile error:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
theData=request.QueryString("LogKey")
Do I need to Convert the String into Int/Long?
Thanks
Diban
I am using a variable in my calc.aspx file to do some calculations:
Dim mLogKey as Long
Dim mBase as Long
mLogKey = Request.QueryString("LogKey")
mBase=Request.QueryString("Base")
I get my value from another form in another file that calls this file as something like this:
action="calc.aspx?LogKey=21&Base=3.14"
I get the following compile error:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
theData=request.QueryString("LogKey")
Do I need to Convert the String into Int/Long?
Thanks
Diban