asked on
Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim Token As String = Me.resultlabel.Text
Dim gvfiles As New GridView
Dim mydatatable As New Data.DataTable
mydatatable = returnitems(Token, "\CHRISTADSTUDIES\Studies") 'this functions returns a datatable
Dim row1 As Data.DataRow = mydatatable.Rows(2)
MsgBox(row1(0).ToString) 'test to make sure data is in the table
gvfiles.AutoGenerateColumns = True
gvfiles.DataSource() = mydatatable
gvfiles.DataBind()
errorlabel.Text = "completed" 'A label I used to make sure the code ran thru to the end.
End Sub
ASKER
ASKER
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
gvfiles.DataSource() = mydatatable => must be => gvfiles.DataSource = mydatatable