Pretty simple question. I\'m quite certain I have the Class, method, codebehind, etc linked properly. Lot\'s of posts online say that this has something to do with compiling
gvLegs_PageIndexChanging
is private but needs to be protected or public.
Since you're using VB.NET you could also use the handles clause:
Private Sub gvLegs_PageIndexChanging(sender As Object, e As GridViewPageEventArgs) _
Handles gvLegs.PageIndexChanging
End Sub
Edit: Just to be clear, you have three options in ASP.NET with VB.NET to create event handlers:
If you use option 1 the event handler must at least be protected since the aspx page inherits from the codebehind class.
If you use option 2 the method can be private but you need to remove the declarative event handler on the aspx.