I have a table with different columns ( CourseCode int, title nvarchar,creditHour int...) courseCode as aprimary key.
I am using ASP.NET , C# and MS SQL .
my problem is , when I send empty text box to CreditHour, it generates an error wchih says FAILED TO CONVERT PARAMERTR VALUE FROM STRING TO INT32. But when I give vale for the text box it works fine.
I tried a lot but not sucessful. please help me..........