ushtabalakh
Programmer
- Jun 4, 2007
- 132
Hi there,
I have a combobox and a listbox in my page, they are filled on serverside,when the user selects a value in the list box, and clicks a button he receives this 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."
When I add EnableEventValidation="off", I can't access the selected item in list box with Me.list_serials.SelectedItem.Text.Trim
cause it gives the "Object reference not set to an instance of an object." error.
Any ideas what I should do?
I have a combobox and a listbox in my page, they are filled on serverside,when the user selects a value in the list box, and clicks a button he receives this 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."
When I add EnableEventValidation="off", I can't access the selected item in list box with Me.list_serials.SelectedItem.Text.Trim
cause it gives the "Object reference not set to an instance of an object." error.
Any ideas what I should do?