Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a setting in my web.config

<sessionstate mode="InProc" cookieless="AutoDetect" timeout="90">.In normal scenarios this is working fine.

I have a web page where when I am clicking a button the form data will be inserted to db.

If I remove cookieless="AutoDetect" from the node mentioned earlier while clicking the button it is throwing the error "Invalid postback or callback argument".

This is making me weird. Please give me some clue.
Posted

1 solution

Easy/direct solution can be adding enableEventValidation="false" in your Page directive or Web.config file.

Detailed explanation here: Invalid postback or callback argument solution. Event validation...[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900