G
Guest
hey all,
i have the following statement:
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
SqlDataSource1.UpdateParameters["FollowUp"].DefaultValue=((CheckBox)sender).Checked?"1":"0";
SqlDataSource1.Update();
}
Regarding what i assigned the parameter's default value: the "FollowUp"
field in the database is a bit. I noticed if I used .Checked?true:false it
didin't work because you can't convert bool to string. But i thought it was a
bool in the database?
just needing some help in understanding.
thanks,
rodchar
i have the following statement:
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
SqlDataSource1.UpdateParameters["FollowUp"].DefaultValue=((CheckBox)sender).Checked?"1":"0";
SqlDataSource1.Update();
}
Regarding what i assigned the parameter's default value: the "FollowUp"
field in the database is a bit. I noticed if I used .Checked?true:false it
didin't work because you can't convert bool to string. But i thought it was a
bool in the database?
just needing some help in understanding.
thanks,
rodchar