I'm having some trouble implementing a simple web forms button postback inside of a BlockTemplate. My implementation is simply an ASP Button server control within a custom block template user control ASCX which is bound to a standard click event handler.
When the button is clicked, I get an "invalid postback or callback argument" exception. I've seen this post about event validation in .NET 2.0, but I'm running .NET 4.0. I would rather avoid switching event validation off, especially as what I'm trying to accomplish is pretty basic.
Hi all,
I'm having some trouble implementing a simple web forms button postback inside of a BlockTemplate. My implementation is simply an ASP Button server control within a custom block template user control ASCX which is bound to a standard click event handler.
When the button is clicked, I get an "invalid postback or callback argument" exception. I've seen this post about event validation in .NET 2.0, but I'm running .NET 4.0. I would rather avoid switching event validation off, especially as what I'm trying to accomplish is pretty basic.
Any help or pointers much appreciated.
Cheers,
Nat