Last post Apr 18, 2008 07:41 AM by pooneh
Apr 16, 2008 03:37 AM|pooneh|LINK
Hi all, I have website by a master page and some .aspx pages. after I compelete design of pages by simple master page, I create a new master page by all requirement(I use an existing website and copy layout of it(html) to my master page and then change it
to that I want and put a ContentPlaceHolder in it), and then change MasterPageFile="~/MasterPage.master" to MasterPageFile="~/MasterPage2.master" in all my .aspx pages. But when I click on button on a page, an error!: Invalid postback or callback argument.
Event validation is enabled using in configuration or 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 set EnableEventValidation to false and click a button; a new error!: Validation of viewstate MAC failed. If this application
is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. Why? What do I do? Also, I set these configuration in web.config: enableEventValidation="false"
enableViewState="false" enableViewStateMac="false" but an error !: The state information is invalid for this page and might be corrupted.
Apr 18, 2008 04:36 AM|Amanda Wang - MSFT|LINK
Could you please post the aspx files of the master page and one content page here? Then let's repro your problem on our local by using them, in order to find what caused this problem.
Apr 18, 2008 07:41 AM|pooneh|LINK
When I copied some tags from a page, there is a <Form> tag that I didn't delete from page. When I deleted it, All pages work gooooood!!
Thans a lot.