I am trying to update database record through checkbox check/uncheck inside gridview. I am having a column in my database which stores int values either 0 or 1. While inserting data I am inserting 1 initially in my table column and I have taken a checkbox inside gridview which will be checked if the column value is 1 and unchecked if 0. I have written Update query inside CheckedChanged event of the checkbox, but whenever I make any action with the checkbox I am getting this sql exception. Please guide where I am doing wrong?
My aspx page-
<asp:GridView ID="GridView1" runat="server" DataKeyNames="fid" BorderStyle="Solid" ShowFooter="True" Width="1000px" AutoGenerateColumns="False" onrowcommand="GridView1_RowCommand" BorderColor="#5D7B9D" CellPadding="4" EnableModelValidation="True" Fo ...

Go to the complete details ...