ViewState and OnItemCommand on an ASP.NET Repeater
Posted by: Rick Strahls WebLog,
on 20 Feb 2006 |
View original | Bookmarked: 0 time(s)
Thinking out loud here… Here's something I never noticed before: It looks like an ASP.NET Repeater doesn't fire OnItemCommand events when ViewState is off for the control. Not sure why this should be, but I'm working on a form where there are several repeaters all of which are reloaded on every.
I have a LinkButton control in the Repeater template with a CommandName and CommandArgument set like this:
<asp:Repeater ID="repLatestItems" runat="server"
OnItemCommand="repLatestItems_ItemCommand">
...