HI
This is my code
paramCol[2] = new SqlParameter("@SalesWeek", SqlDbType.TinyInt);
paramCol[2].Value =Convert.ToByte(lblSalesWeek.Text.Trim());
In my Storedprocedure Sakesweek datatype is Tiny int
so when i convert getting error like input string was not in correct format
plz help me how to convert this code
Loading
Jignesh TrivediPosted Jan 30, 2012, 6:10 AM
I agree with above post.
but kindly check your input it may be character or other than number.
hope this help.
VulpesPosted Jan 30, 2012, 5:44 AM