FormView Update item

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,103
Messages
2,570,642
Members
47,245
Latest member
LatiaMario

Latest Threads

Top