T
Tom
Hi,
I have a webform which has DropDownList, RadioButtonList
and CheckBoxList. All values are in webform, but not
select from DB table as they do not need to be used as
search requirements.
For DropDownList and RadioButtonList, there is only one
item is selected and store in DB table.
I use
this.DropDownListItem.SelectedItem.Value = ds
["DropDownListItem"].ToString();
and
this.RadioButtonListItem.SelectedItem.Value = ds
["RadioButtonListItem"].ToString();
When the user edit the values of DropDownList and
RadioButtonList, the web form will display the selected
options.
However, how can I deal with a CheckBoxList? I can use a
foreach loop to get the selected values.
How can the selected values of CheckBoxList be displayed
in the web form when the user wants to edit it next time?
Do I need a delimitor to separate the checkboxlist values
before store them in DB?
Any better idea?
Thanks
I have a webform which has DropDownList, RadioButtonList
and CheckBoxList. All values are in webform, but not
select from DB table as they do not need to be used as
search requirements.
For DropDownList and RadioButtonList, there is only one
item is selected and store in DB table.
I use
this.DropDownListItem.SelectedItem.Value = ds
["DropDownListItem"].ToString();
and
this.RadioButtonListItem.SelectedItem.Value = ds
["RadioButtonListItem"].ToString();
When the user edit the values of DropDownList and
RadioButtonList, the web form will display the selected
options.
However, how can I deal with a CheckBoxList? I can use a
foreach loop to get the selected values.
How can the selected values of CheckBoxList be displayed
in the web form when the user wants to edit it next time?
Do I need a delimitor to separate the checkboxlist values
before store them in DB?
Any better idea?
Thanks