D
dw
Hello, all. I'm just starting to work with ASP.NET in VS.NET 2003. I've
created a page with a dropdownlist server control (lstStates) that should
pull in the contents of an Access table tblValidStateAbbr (has states and
their abbreviations). However, no matter what I do, I can't get the dropdown
to show any data on the page.
I have a connection, an OLE DB data adapter, and a dataset that contains the
SELECT to the tblValidStateAbbr. All were created via double-clicking the
data objects on the DATA tab of the Toolbox and following the wizards.
In the pageload event of the code behind file, I have this code. I've been
doing years of ASP development, and ASP.NET is new to me. I think I'm
missing something simple. Any help is appreciated. Thank you.
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.OleDbDataAdapter1.Fill(Me.DsStates1)
Me.lstStates.DataBind()
End Sub
created a page with a dropdownlist server control (lstStates) that should
pull in the contents of an Access table tblValidStateAbbr (has states and
their abbreviations). However, no matter what I do, I can't get the dropdown
to show any data on the page.
I have a connection, an OLE DB data adapter, and a dataset that contains the
SELECT to the tblValidStateAbbr. All were created via double-clicking the
data objects on the DATA tab of the Toolbox and following the wizards.
In the pageload event of the code behind file, I have this code. I've been
doing years of ASP development, and ASP.NET is new to me. I think I'm
missing something simple. Any help is appreciated. Thank you.
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.OleDbDataAdapter1.Fill(Me.DsStates1)
Me.lstStates.DataBind()
End Sub