0
Answer

ObjectDataSource1.InsertParameters pass bool value. How?

Boguda Boguda

Boguda Boguda

9y
504
1

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