ASP.NET - checkbox value - Asked By msakt on 01-Jun-12 06:20 AM

in table have bit ui  if check checkbox value stor in yes or true if uncheck no or false value store in sql...

how to pass in ui and i am use how can commane pass
Jitendra Faye replied to msakt on 01-Jun-12 06:24 AM
Use this code-

int flag;


Now send this value to store in database, because bit accept 1 or 0.
dipa ahuja replied to msakt on 01-Jun-12 03:39 PM
  bool status = checkBox1.Checked;

now store this status in your table field.