Adding Pay Pal

Discussion in 'ASP.NET WebServices' started by rich4254, Jan 6, 2006.

  1. I am attempting to add the pay pal button and function to our site. It is not
    working properly.
    >
    > I am adding it to the following page on our site:

    >
    > The following is the message I get when I click the Buy Now button:
    > [ArgumentException: 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.]
    > System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String
    argument) +2080153
    > System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +106
    > System.Web.UI.WebControls.TextBox.LoadPostData(String postDataKey,
    NameValueCollection postCollection) +31
    > System.Web.UI.WebControls.TextBox.System.Web.UI.IPostBackDataHandler.LoadPostData(String
    postDataKey, NameValueCollection postCollection) +11
    > System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean
    fBeforeLoad) +408
    > System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint) +3776
    >
    > Please advise.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    did you do what the error suggest?

    Set <pages enableEventValidation='false'/>

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page