Ragazzi, volevo popolare un datalist.. pensavo fosse semplice, invece non ci salto fuori!!
Caccia all'errore...
codice:
Dim CodemondoDB As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Me.Request.PhysicalApplicationPath & "mdb-database/Codemondo.mdb")
Dim Adapter1 As New OleDb.OleDbDataAdapter("SELECT Nome FROM Giocatori where Squadra = '1'", CodemondoDB)
Dim MyQuery1 As Data.DataSet = New DataSet()
Adapter1.Fill(MyQuery1, "Giocatori")
DataGrid1.DataSource = MyQuery1.Tables(0)
DataGrid1.DataBind()
DataGrid1.Visible = False
CodemondoDB.Open()
DataList1.DataSource = MyQuery1.Tables(0).DefaultView
DataList1.DataBind()
Grazie!
Andrea