Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

convert data that is inserted with dropdownlist...need help

i hav a following dropdownlist.... and i would have to create a report based on the values inserted with dropdownlists which requires the values to be bind to labels

Any idea how this conversion can be done?

Dim objdrKecacatan As SqlDataReader
Try
conn.Open()
objdrKecacatan = objCmd4.ExecuteReader()
DDListKecacatan.DataSource = objdrKecacatan
DDListKecacatan.DataTextField = "Kecacatan"
DDListKecacatan.DataValueField = "KodCacat"
DDListKecacatan.DataBind()
objdrKecacatan.Close()
Dim itemBangsa As ListItem = New ListItem("Pilih Kecacatan (Jika Ada)", "-1")
Me.DDListKecacatan.Items.Insert(0, itemBangsa)
Catch err As Exception
Response.Write("Kecacatan: " & err.Message())
Response.Redirect("errorpage.aspx")
Finally
conn.Close()
End Try

the dropdown list get feed form a table and inserted into another tables . how can i get the values in my dropdownlist to bind to textbox/label?
[1217 byte] By [kramer] at [2007-11-11 11:59:10]
# 1 Re: convert data that is inserted with dropdownlist...need help
Welcome to dev-archive :WAVE:

I assume the question is when I select something from a drop down list, how do I display it in a texbox or label. Is this what you are after?
Hack at 2007-11-11 23:10:42 >