Hello
I have a webform with a series of radiobuttons where a user can select which pages he will visit next after he hits a button.
I thought I'd store his selections like this:
So if the user chooses yes on the first 2 radiobuttons then I'll be storing the value 6 in the database, which corresponds to the 1st and 2nd pages.
My problem is that I don't know how to translate this breaking down of this value to those webpages. Any ideas?
Thanks
I have a webform with a series of radiobuttons where a user can select which pages he will visit next after he hits a button.
I thought I'd store his selections like this:
Code:
private int SelectedSchemes()
{
if ( rdSTEERY.Checked )
iSelected += Convert.ToInt32(Math.Pow(2,1));
if ( rdCAFEY.Checked )
iSelected += Convert.ToInt32(Math.Pow(2,2));
if ( rdDiscPlusY.Checked )
iSelected += Convert.ToInt32(Math.Pow(2,3));
.
.
.
so on...
return iSelected;
}
So if the user chooses yes on the first 2 radiobuttons then I'll be storing the value 6 in the database, which corresponds to the 1st and 2nd pages.
My problem is that I don't know how to translate this breaking down of this value to those webpages. Any ideas?
Thanks