An exception of type 'System.Data.SqlClient.SqlException' occurred in App_Code.1g52ig0_.dll but was not handled in user code
Additional information: Conversion failed when converting the varchar value 'selvi' to data type int.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shivanand ArurPosted Sep 26, 2012, 7:00 AM
There is some problem due to passing incorrect parameter type.
Pradip PandeyPosted Sep 26, 2012, 6:59 AM
This type of error comes when you are trying to convert string value into integer type. So, check your code so that both the sides must be of same type. e.g.
int studentID = int.Parse(Session["StudentID"].ToString());
This is correct but if you write
int studentID = Session["StudentID"].ToString();
This is incorrect.
Hope it will help.