<script language="vb" runat="server">
Public Sub showproduct()
Dim myconn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&Server.MapPath("DataBase/BusX10.mdb"))
Dim myda As New OleDbDataAdapter("select * from product where categoryid="&request.QueryString("catid")&"and subcategoryid="&request.QueryString("subcatid"), myconn)
Dim ds As New Dataset()
myda.Fill(ds,"table1")
subcatlist.Datasource = ds.tables("table1")
subcatlist.databind()
End Sub
จากโค้ดในส่วนของแท็ค form จะให้ action ไป aa.aspx แต่ทำไมในเรคคอร์ดแรกมันถึงกลับมาหน้าเดิมครับและ error
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.