mga master unsaon pag populate sa gridview sa asp.net?
Code:
Public Function subj() As DataView Dim SelectQry = "select * from subject" Dim SampleSource As New DataSet Dim TableView As DataView Try Dim SampleCommand As New OleDbCommand() Dim SampleDataAdapter = New OleDbDataAdapter() SampleCommand.CommandText = SelectQry SampleCommand.Connection = mconn SampleDataAdapter.SelectCommand = SampleCommand SampleDataAdapter.Fill(SampleSource) TableView = SampleSource.Tables(0).DefaultView Catch ex As Exception Throw ex End Try Return TableView End Function
naay koy code but for vb.net
sorry i am really into vb jud pure its my first time to deal with asp
unsaon naku pag code same way sa code naku for asp.net?
please mga masters i need help jud.