What integer value do you think an empty string represents? Dotnet can't
decide it for you. You need to check the string on empty before casting it
to integer.
The object reference error means the variable you use is null. Check your
code, likely you need to create it.
Eliyahu
"Vikram" <aa@aa> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
in my asp.net app, i get following two errors some times, these errors
occasionally occurs
please let me know if anyone has any idea why they occur
Cast from string "" to type 'Integer' is not valid
Object reference not set to an instance of an object