Boguda Boguda

Boguda Boguda

  • NA
  • 27
  • 9.6k

ObjectDataSource1.InsertParameters pass bool value. How?

Jul 8 2015 4:01 PM

HI,

I have GridView and I bind it whit ObjectDataSource . I try to add insertparameter like this

CheckBox chbton = (CheckBox)GridView1.FooterRow.FindControl("Ton");

      

ObjectDataSource1.InsertParameters["scanton"].Type = TypeCode.Boolean;

ObjectDataSource1.InsertParameters["scanton"].DefaultValue =chbton.Checked;

Is it possible to pass bool value in this insert parameter