Invalid postback or callback argument

Discussion in 'ASP .Net' started by =?Utf-8?B?R2hpc3Rvcw==?=, Aug 28, 2007.

  1. Another boring question but... canno't find any good answer

    I created a user control with a DropDownList inside.

    It is loaded in the page_Load event if not postback.

    Then, just to verify it, I put it on a aspx page with a label and button.

    When I click on the button, all I want is to put the value from the
    dropdownlist
    in the label. Very basic stuff... but

    I receive 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.
    =?Utf-8?B?R2hpc3Rvcw==?=, Aug 28, 2007
    #1
    1. Advertising

  2. Ok, I solve my problem...

    "Ghistos" wrote:

    > Another boring question but... canno't find any good answer
    >
    > I created a user control with a DropDownList inside.
    >
    > It is loaded in the page_Load event if not postback.
    >
    > Then, just to verify it, I put it on a aspx page with a label and button.
    >
    > When I click on the button, all I want is to put the value from the
    > dropdownlist
    > in the label. Very basic stuff... but
    >
    > I receive 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.
    >
    >
    >
    =?Utf-8?B?R2hpc3Rvcw==?=, Aug 28, 2007
    #2
    1. Advertising

  3. =?Utf-8?B?R2hpc3Rvcw==?=

    bruce barker Guest

    this means at postback the dropdown postback value was not a value in
    the list.

    -- bruce (sqlwork.com)

    Ghistos wrote:
    > Another boring question but... canno't find any good answer
    >
    > I created a user control with a DropDownList inside.
    >
    > It is loaded in the page_Load event if not postback.
    >
    > Then, just to verify it, I put it on a aspx page with a label and button.
    >
    > When I click on the button, all I want is to put the value from the
    > dropdownlist
    > in the label. Very basic stuff... but
    >
    > I receive 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.
    >
    >
    >
    bruce barker, Aug 28, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    520
  2. kevin goff
    Replies:
    2
    Views:
    1,162
    ponyryd
    Aug 4, 2006
  3. JULO
    Replies:
    1
    Views:
    6,385
    ketanbece
    Oct 29, 2008
  4. Amil
    Replies:
    4
    Views:
    14,680
  5. Ray Stevens

    Invalid postback or callback argument.

    Ray Stevens, Mar 28, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    9,074
    Ray Stevens
    Mar 28, 2006
Loading...

Share This Page