Hello all --
I'm missing something painfully obvious here, I'm sure, but I'm trying to get a simple command event handler to fire when a link button is clicked. This should not be so painful.
The following is my linkbutton declaration in the aspx file:
<asp:LinkButton id="lnkAccount" runat="server" CommandName="sort"
CommandArgument="account" OnCommand=handleSorting>Account</asp:LinkButton>
Ok. I have then declared the respective event handler for the command in the codebehind:
Protected Sub handleSorting(ByVal sender As Object, ByVal e As CommandEventArgs)
bindList(e.CommandArgument)
End Sub
What am I missing here, guys/gals? The event handler is not firing, and I'm about to lose my head over here.
Thanks,
paul
I'm missing something painfully obvious here, I'm sure, but I'm trying to get a simple command event handler to fire when a link button is clicked. This should not be so painful.
The following is my linkbutton declaration in the aspx file:
<asp:LinkButton id="lnkAccount" runat="server" CommandName="sort"
CommandArgument="account" OnCommand=handleSorting>Account</asp:LinkButton>
Ok. I have then declared the respective event handler for the command in the codebehind:
Protected Sub handleSorting(ByVal sender As Object, ByVal e As CommandEventArgs)
bindList(e.CommandArgument)
End Sub
What am I missing here, guys/gals? The event handler is not firing, and I'm about to lose my head over here.
Thanks,
paul