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
Conversion Error:Input string was not in correct format
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jan 30, 2012, 12:44 AM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 30, 2012, 1:10 AM EST
I agree with above post.
but kindly check your input it may be character or other than number.
hope this help.