Tech Off Post

Single Post Permalink

View Thread: Invalid postback or callback argument. Wants event validation enabled.
  • User profile image
    Shimi Weitzhandler

    qwert231 said:
    I had a Me.DataBind in the Page Load, and it wasn't nested in the If Not Page.IsPostBack, so every time the page was called or did a Postback, everything was DataBound.

    This post: http://forums.asp.net/2/1064482/ShowPost.aspx#1064482

    showed me that in .Net 2.0 that changes the names of controls embedded in DataGrids/Lists on DataBind. Thus it was an unknown control as far as the code was concerned.

    Thanks man!

    I had exactly the same issue!

    That was so frustrating finding that the problem was this stupid if(!IsPostBack) I believe you had the same pain....

    lol