andycharger
Centurion
- Joined
- Apr 2, 2003
- Messages
- 152
Hi
I have entries stored in my Database that are originally stored from <select> drop downs on a form.
e.g. <select>
<option>rice</option><option>peas</option> </select>
Now when I return to the form and retrieve the information from the database and put it back on my form I use the following:
So what I want to know is, if I have a drop down with RICE and PEAS in it, and I want to make the database recorded version the selected one when I edit the information, How do I get the option to be the Selected one?
I have entries stored in my Database that are originally stored from <select> drop downs on a form.
e.g. <select>
<option>rice</option><option>peas</option> </select>
Now when I return to the form and retrieve the information from the database and put it back on my form I use the following:
Code:
<asp:TextBox Font-Bold=True CssClass="boxtext" id="txtName" Text='<%# DataBinder.Eval(Container.DataItem, "first_name") %>' runat="server"></asp:TextBox>
So what I want to know is, if I have a drop down with RICE and PEAS in it, and I want to make the database recorded version the selected one when I edit the information, How do I get the option to be the Selected one?