Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8121777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:36:27+00:00 2026-06-06T05:36:27+00:00

Pretty simple question. I’m quite certain I have the Class, method, codebehind, etc linked

  • 0

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 and/or dll/bin files, but none of their help has worked for me.

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 

NestedGridView.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 [Code Behind]
…

 Private Sub gvLegs_PageIndexChanging(sender As Object, e As GridViewPageEventArgs)

If anyone has a fix for this, it would help me greatly so I can continue…. debugging the actual code lol.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:36:28+00:00Added an answer on June 6, 2026 at 5:36 am

    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:

    1. declaratively on aspx
    2. in code with handles clause
    3. with AddHandler (mostly for dynamical controls in VB.NET)

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hopefully a pretty simple question this time. I have a Select method in a
My question is pretty simple, I have: class upperstr(str): def __new__(cls, arg): return str.__new__(cls,
pretty simple question, can't quite fig. it out. I have 2 js array's that
Pretty simple question. I have a few ASP RequiredFieldValdators checking some text boxes. Out
I have a pretty simple question which perhaps someone familiar with Server/Client design &
i have pretty simple simple question (i hope so). How do i change the
So my question is pretty simple. I'd like to have specific dates that are
Hopefully this is a pretty simple question for someone to answer. I have a
I have a pretty simple question: how can I terminate a running script in
Pretty simple Question, unfortunatly never used draw controls etc in C# so im not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.