Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 143 Vote(s) - 3.52 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why I got this exception :Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument

#1
Why I got this error

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: 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.

this error appears when the event for Save command is started

Protected Sub DataList1_ItemCommand(source As Object, e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles dlMainTraing.ItemCommand
If e.CommandName = "Save" Then
Dim lblMainId = CType(dlMainTraing.Items(e.Item.ItemIndex).FindControl("Train_M_IndxLabel"), Label)
Dim txtSubTrainingName2 = CType(dlMainTraing.Items(e.Item.ItemIndex).FindControl("txtSubTrainingName"), TextBox)
Dim a = addSubTraining(CInt(lblMainId.Text), txtSubTrainingName2.Text)
' Dim gvSubTraning As GridView = CType(e.Item.FindControl("gvSubTraning"), GridView)
'gvSubTraning.DataBind()
End If

End Sub
Reply

#2
At the top of your .aspx page, set EnableEventValidation to false.

![enter image description here][1]


[1]:
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through