hi there
could you please help it's agent, i'm doing search button my code gives me this erro 'CurrentPageIndex' is not a member of 'System.Web.UI.WebControls.GridView'. here is my code
Private Sub txtSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearch.Click
BindData()
End Sub
Private Sub BindData()
Dim connection As New OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + Server.MapPath("~/App_Data/bug_base.mdb"))
connection.Open()
Dim sql As String = "SELECT BugID,Status,Priority,Catagory,Application,DueDate,BugTitle FROM new_bug WHERE Status LIKE '%" & Me.txtStatus2.Text & "%'"
Dim command As New OleDbCommand(sql, connection)
Dim dataset As New DataSet()
Dim adapter As New OleDbDataAdapter(command)
adapter.Fill(dataset)
adapter.Dispose()
GridBugList.DataSource = dataset.Tables(0)
GridBugList.DataBind()
command.Dispose()
connection.Close()
End Sub