I currently have a DropDownList that I have populated through a StoredProcedure.
It populates ok, however, when I seleted an item down the list, it always returns the one at the top?
Could anyone give me any idea of what may be causing this?
It populates ok, however, when I seleted an item down the list, it always returns the one at the top?
Could anyone give me any idea of what may be causing this?
VB.NET:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
FillDealerDDL()
End Sub
Sub FillDealerDDL()
Dim GetReader As New GeneralReaderQuery(Constants.LiveGVP, "GetVehiclesFillDDL1")
Me.ddlDealerName.DataSource = GetReader.FetchReader
Me.ddlDealerName.DataTextField = "DealerName"
Me.ddlDealerName.DataValueField = "DealerName"
Me.ddlDealerName.DataBind()
End Sub