public bool Checkbox { get; set; }
SqlParameter strCheckbox = new SqlParameter(); strCheckbox = cmdLiveBlogs.Parameters.Add("@Checkbox", SqlDbType.VarChar, 300); strCheckbox.Direction = ParameterDirection.Output;
Keys.Checkbox = Convert.ToBoolean(strCheckbox);
@Html.CheckBoxFor(model => model.Checkbox, new {@Value = @ViewBag.Checkbox }) @Html.Label("Enable on Website")
cmdLiveBlogs.ExecuteNonQuery(); Keys.Checkbox =Convert.ToBoolean(strCheckbox.Value);
@Checkbox
bit
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)