Actually. When I try and retrieve the contents of the dropdownlist later the
Value has the equivalents of the text. When I loaded it with data in a loop
the value was 1 where the text was Alabama. Now later they both contain
Alabama.
Thanks.
Big E
TextBox1.Text = cboStateCompany.SelectedItem.Value
TextBox2.Text = cboStateCompany.SelectedItem.Text
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uT****************@TK2MSFTNGP09.phx.gbl...
Combo box or DropDownList?
should be
this.DropDownList1.SelectedItem.Value
or
this.DropDownList1.SelectedItem.Text
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Big E" <no****@nospam.com> wrote in message
news:eQ***************@TK2MSFTNGP11.phx.gbl... I'm using VB in ASP.Net with SQL Server 2000.
I have a States Combobox that lists the State. The State has a StateId
in table states. When I do updates to various tables from the form I would
like to update the StateId not the StateName. I've looked at the datamember
and datavalue stuff but don't understand it.
Can anyone point me at a sample or some code they've used.
Thanks.
Big E