VB.NET databind to drop down list
- From: "Andy" <Andy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Apr 2005 07:21:04 -0700
I have a stored procedure in SQL Server that returns a list of names that I
would like to bind to a drop down list. This is the code I have, but it is
not working correctly. The drop down contains System.Data.DataRowView
Dim ConString As String = ConfigurationSettings.AppSettings("cs")
Dim myCon As New SqlConnection(ConString)
Dim CmdTextAssignedToListing As String = "usp_GetAssignedToNames"
Dim CmdAssignedToListing As New
SqlDataAdapter(CmdTextAssignedToListing, myCon)
Dim dsAssignedToListing As New DataSet
'fill drop down with user names
CmdAssignedToListing.Fill(dsAssignedToListing)
'Databind to the Drop Down
DropDownAssignedTo.DataSource = dsAssignedToListing
DropDownAssignedTo.DataBind()
Any help is appreciated.
.
- Follow-Ups:
- Re: VB.NET databind to drop down list
- From: Cor Ligthert
- Re: VB.NET databind to drop down list
- Prev by Date: System.Drawing.Graphic.VisibleClipBounds
- Next by Date: Which is better? VS.NET or Eclipse?
- Previous by thread: System.Drawing.Graphic.VisibleClipBounds
- Next by thread: Re: VB.NET databind to drop down list
- Index(es):
Relevant Pages
|