Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 27th, 2004, 12:59 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compiler Error Message: BC30456

I am getting the following error:

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'dotForumDisplay_Paged' is not a member of 'ASP.forum_aspx'.

Source Error:



Line 20: </p>
Line 21: <p>
Line 22: <asp:datagrid id="dotForumDisplay" runat="server" BorderWidth="0" CellPadding="0" CellSpacing="0"
Line 23: Width="100%" AutoGenerateColumns="False" AllowPaging="True" PageSize="15" OnPageIndexChanged="dotForumDisplay_Paged"
Line 24: CssClass="forum">


Source File: http://localhost/SLDC_v_1_1/forum/forum.aspx Line: 22

What am I doing wrong?

  #2 (permalink)  
Old May 27th, 2004, 02:06 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

It sounds like you haven't defined a method called dotForumDisplay_Paged in your ASPX page or Code Behind file.
You hook up the OnPageIndexChanged event to the dotForumDisplay_Paged method, but it's important that this method exists and is accessible....

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old May 27th, 2004, 02:23 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I looked at my code-behind file and I don't see it there. All it has is:

Public Class forum
    Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub
    Protected WithEvents dotForumDisplay As System.Web.UI.WebControls.DataGrid
    Protected WithEvents messageCenter As System.Web.UI.HtmlControls.HtmlGenericControl

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
    End Sub
End Class

The I looked at my html source. It has ...

<%@ Page language="vb" Inherits="SLDC.forum" CodeBehind="forum.aspx.vb" AutoEventWireup="false" %>

<script language="VB" runat="server">





</script>
<form runat="server">
    <p>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <b>Forum Topics</b>
                </td>
                <td height="15"></td>
            </tr>
        </table>
    </p>
    <p>
        <asp:datagrid id="dotForumDisplay" runat="server" BorderWidth="0" CellPadding="0" CellSpacing="0"
            Width="100%" AutoGenerateColumns="False" AllowPaging="True" PageSize="15" OnPageIndexChanged="dotForumDisplay_Paged"
            CssClass="forum">
...

Now where could it be?

  #4 (permalink)  
Old May 27th, 2004, 02:25 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

am i looking in the wrong place?

  #5 (permalink)  
Old May 27th, 2004, 02:50 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

No, you're looking at the right places. You should find the relevant code either in a Code Behind file, or in-line in the ASPX page.
However, it makes sense that you cannot find it; that's what the compiler is complaining about. Add the method signature to the Code Behind file, or remove the OnPageIndexChanged attribute from your DataGrid, depending on what it is you're trying to accomplish.

Look here for more info about the OnPageIndexChanged method.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #6 (permalink)  
Old October 12th, 2006, 08:56 AM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had this same problem, and your diagnosis was right on. I was calling something in my datagrid's onitemdatabound method that no longer existed in my codebehind.

Thanks for the help!

  #7 (permalink)  
Old October 12th, 2006, 02:56 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

You're welcome.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler Error Message: BC30456: 'dgproducts_editc sunitha50 ASP.NET 2.0 Basics 0 February 27th, 2007 12:43 PM
Compiler Error Message: BC30456: crmpicco ASP.NET 2.0 Basics 3 November 30th, 2006 07:40 AM
Compiler Error Message: CS1010: Newline in constan @shish Crystal Reports 0 May 10th, 2006 04:39 AM
Compiler Error BC30456 Dwizz ASP.NET 1.0 and 1.1 Basics 3 November 9th, 2005 11:30 AM
Compiler Error Message: CS0246: The type or namesp frmsasp All Other Wrox Books 0 September 17th, 2005 09:13 AM



All times are GMT -4. The time now is 07:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.