R
roxana.goidaci
Hello,
I am a newbie in asp.net 2.0 and also asp.net web app, so sorry if the
question sounds a little stupid.
I am using a FormView control which uses a sql DataSource. In the
EditTemplate, I replaced one Text item with a DropDownList control. I
need to populate the DropDown with values from an enumeration. I solved
this in the Init event for the drop down. But the problem is when I
update the values. Normally, in the database, I have the SelectedIndex
of the dropDown. I thought of setting the selected index value, or in
general, any computed / custom value SOMEWHERE in the datasource maybe,
so that the update command uses this custom value and not the default
value as for all the other fields in the FormView.
Thanks in advance.
I am a newbie in asp.net 2.0 and also asp.net web app, so sorry if the
question sounds a little stupid.
I am using a FormView control which uses a sql DataSource. In the
EditTemplate, I replaced one Text item with a DropDownList control. I
need to populate the DropDown with values from an enumeration. I solved
this in the Init event for the drop down. But the problem is when I
update the values. Normally, in the database, I have the SelectedIndex
of the dropDown. I thought of setting the selected index value, or in
general, any computed / custom value SOMEWHERE in the datasource maybe,
so that the update command uses this custom value and not the default
value as for all the other fields in the FormView.
Thanks in advance.