J
Jorge
I have dropdownlist boxes that are bound to a function that loads them. I set the text and value properties with different values as I want the description and the return value to be different. When I select an item the text and value properties are the same, why? example
'*************************************************************************************
'Load the Status Code Drop Down bo
'*************************************************************************************
Private Sub LoadStatusCodeDropDown(
drpStatusSel.DataSource = GetStatusCodeList(
drpStatusSel.DataBind(
End Su
'****************************************************************************************
'This function builds the items available for the Status dropdown boxe
'****************************************************************************************
Public Shared Function GetStatusCodeList() As ListItemCollectio
Dim mobjListBoxData As New ListItemCollection(
With mobjListBoxDat
.Add(New ListItem("Select one...", "None")
.Add(New ListItem("D - Deleted via Extract", "D")
.Add(New ListItem("E - Deleted via WEB", "E")
.Add(New ListItem("H - Hold", "E")
.Add(New ListItem("R - SoftAuto", "R")
End Wit
Return mobjListBoxDat
End Functio
This code from the first item (0)
myString = drpStatusSel.SelectedItem.Valu
is returning: "Select one..." instead of the word "None
Thank
'*************************************************************************************
'Load the Status Code Drop Down bo
'*************************************************************************************
Private Sub LoadStatusCodeDropDown(
drpStatusSel.DataSource = GetStatusCodeList(
drpStatusSel.DataBind(
End Su
'****************************************************************************************
'This function builds the items available for the Status dropdown boxe
'****************************************************************************************
Public Shared Function GetStatusCodeList() As ListItemCollectio
Dim mobjListBoxData As New ListItemCollection(
With mobjListBoxDat
.Add(New ListItem("Select one...", "None")
.Add(New ListItem("D - Deleted via Extract", "D")
.Add(New ListItem("E - Deleted via WEB", "E")
.Add(New ListItem("H - Hold", "E")
.Add(New ListItem("R - SoftAuto", "R")
End Wit
Return mobjListBoxDat
End Functio
This code from the first item (0)
myString = drpStatusSel.SelectedItem.Valu
is returning: "Select one..." instead of the word "None
Thank