Public Function Bind_Search_person(ByVal GridView1 As GridView)
Mysql = "SELECT * FROM person_table"
conn.Connect()
Dim myCommand1 As New Mysql.Data.MySqlClient.MySqlCommand(Mysql, conn.myConnection)
conn.MyReader = myCommand1.ExecuteReader
If conn.MyReader.HasRows Then
GridView1.Visible = True
GridView1.DataSource = conn.MyReader
GridView1.DataBind()
Else
MsgBox("ไม่พบข้อมูลที่ต้องการค้นหา !!!", MsgBoxStyle.Critical, "ผลการค้นหา")
GridView1.Visible = False
End If
End Function
The data source does not support server-side data paging.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: The data source does not support server-side data paging.