dropdownlist

  • Thread starter Thread starter RSusanto
  • Start date Start date
R

RSusanto

anybody know how to assign a value from the pupulated dropdownlist from
other table value.

the dropdownlist already populated from table.

thank you
 
I have this in aspx.like this
<asp:dropdownlist id="ddlCategory"
datasource='<%# GetValues("tbCategory","CategoryName")%>'
DataValueField="CategoryId"
DataTextField="CategoryName"
Width="300"
MaxLength="100"
runat="server"/>
those code above working fine, but I need to give the specified value to
that dropdownlist above.
Every time populated it will get the first record, right ?
What if I need to make the selected value with the one that I have on other
table.

thanks
 
Back
Top