很简单的问题。我很确定我已经正确链接了类、方法、代码隐藏等。网上很多帖子说这与编译和/或 dll/bin 文件有关,但他们的帮助都没有对我有用。
Compiler Error Message: BC30456: 'gvLegs_PageIndexChanging' is not a member of 'ASP.nestedgridview_aspx'.
Source Error:
Line 43: <asp:Label ID="lblEmpName" runat="server" Text='<%# Eval("Location")%>'></asp:Label>
Line 44: <asp:Literal runat="server" ID="lit1" Text="</td><tr id='trCollapseGrid' style='display:none' ><td colspan='5'>" />
Line 45: <asp:GridView ID="gvLegs" AutoGenerateColumns="False" runat="server" EnableViewState="False"
Line 46: DataKeyNames="EmployeeId" ForeColor="#333333" PageSize="4" AllowPaging="True"
Line 47: OnPageIndexChanging="gvLegs_PageIndexChanging">
Source File: C:\Users\tstanley\Desktop\NestedVB\NestedVB\NestedGridView.aspx Line: 45
嵌套网格视图.aspx
<%@ Page Language="vb" AutoEventWireup="false" codebehind="NestedGridView.aspx.vb" Inherits="NestedVB.NestedGridViewPaging2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
NetedGridView.aspx.vb [后面的代码] ...
Private Sub gvLegs_PageIndexChanging(sender As Object, e As GridViewPageEventArgs)
如果有人对此有解决方案,它将对我有很大帮助,因此我可以继续....调试实际代码大声笑。