473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

BC30456, Compiler says something I defined is not a member of my aspx page

I am switching from Java to the .Net framework.

In order to separate page layout design from the application code, I
studied the codebehind tutorial by John at
http://www.asp101.com/articles/john/...vs/default.asp

In my GetQueryResult.aspx, I defined a DataGrid as follows:

<asp:DataGrid ID ="dgQueryResults" runat="server"
AllowPaging="True"
PageSize="20"
PagerStyle-Mode="NumericPages"
PagerStyle-HorizontalAlign="Right"
OnPageIndexChanged="dgQueryResult_Page"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
CellPadding="3"
CellSpacing="0"
HeaderStyle-BackColor="#aaaadd"
AlternatingItemStyle-BackColor="#eeeeee" />

And in a VB file separate from GetQueryResult.aspx, I have:

Public Class QueryResult

Sub dgQueryResult_Page(sender As System.Object, _
e As
System.Web.UI.WebControls.DataGridPageChangedEvent Args)
dgQueryResults.CurrentPageIndex = e.NewPageIndex
Call BindData(dgQueryResults)
End Sub

Sub BindData(dgDataGrid As System.Web.UI.WebControls.DataGrid)
'// I defined BindData Sub here and it works great.
End Sub
End Class

But, when I check out the GetQueryResult.aspx page from the browser, I
get the following error message:

Compiler Error Message: BC30456: 'dgQueryResult_Page' is not a member
of 'ASP.query_results_aspx'.

I don't understand this. I do have dgQueryResult_Page defined in the
class. Any idea about what is going on? Thanks.

Feb 2 '06 #1
3 1982
Hmm, looks like this is a tough question which baffled quite many
professional developers on board. :)

er****@gmail.com wrote:
I am switching from Java to the .Net framework.

In order to separate page layout design from the application code, I
studied the codebehind tutorial by John at
http://www.asp101.com/articles/john/...vs/default.asp

In my GetQueryResult.aspx, I defined a DataGrid as follows:

<asp:DataGrid ID ="dgQueryResults" runat="server"
AllowPaging="True"
PageSize="20"
PagerStyle-Mode="NumericPages"
PagerStyle-HorizontalAlign="Right"
OnPageIndexChanged="dgQueryResult_Page"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
CellPadding="3"
CellSpacing="0"
HeaderStyle-BackColor="#aaaadd"
AlternatingItemStyle-BackColor="#eeeeee" />

And in a VB file separate from GetQueryResult.aspx, I have:

Public Class QueryResult

Sub dgQueryResult_Page(sender As System.Object, _
e As
System.Web.UI.WebControls.DataGridPageChangedEvent Args)
dgQueryResults.CurrentPageIndex = e.NewPageIndex
Call BindData(dgQueryResults)
End Sub

Sub BindData(dgDataGrid As System.Web.UI.WebControls.DataGrid)
'// I defined BindData Sub here and it works great.
End Sub
End Class

But, when I check out the GetQueryResult.aspx page from the browser, I
get the following error message:

Compiler Error Message: BC30456: 'dgQueryResult_Page' is not a member
of 'ASP.query_results_aspx'.

I don't understand this. I do have dgQueryResult_Page defined in the
class. Any idea about what is going on? Thanks.


Feb 2 '06 #2
what does you page directive look like? do you have the aspx page inherit
from the codebehind?

-- bruce (sqlwork.com)

<er****@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hmm, looks like this is a tough question which baffled quite many
professional developers on board. :)

er****@gmail.com wrote:
I am switching from Java to the .Net framework.

In order to separate page layout design from the application code, I
studied the codebehind tutorial by John at
http://www.asp101.com/articles/john/...vs/default.asp

In my GetQueryResult.aspx, I defined a DataGrid as follows:

<asp:DataGrid ID ="dgQueryResults" runat="server"
AllowPaging="True"
PageSize="20"
PagerStyle-Mode="NumericPages"
PagerStyle-HorizontalAlign="Right"
OnPageIndexChanged="dgQueryResult_Page"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
CellPadding="3"
CellSpacing="0"
HeaderStyle-BackColor="#aaaadd"
AlternatingItemStyle-BackColor="#eeeeee" />

And in a VB file separate from GetQueryResult.aspx, I have:

Public Class QueryResult

Sub dgQueryResult_Page(sender As System.Object, _
e As
System.Web.UI.WebControls.DataGridPageChangedEvent Args)
dgQueryResults.CurrentPageIndex = e.NewPageIndex
Call BindData(dgQueryResults)
End Sub

Sub BindData(dgDataGrid As System.Web.UI.WebControls.DataGrid)
'// I defined BindData Sub here and it works great.
End Sub
End Class

But, when I check out the GetQueryResult.aspx page from the browser, I
get the following error message:

Compiler Error Message: BC30456: 'dgQueryResult_Page' is not a member
of 'ASP.query_results_aspx'.

I don't understand this. I do have dgQueryResult_Page defined in the
class. Any idea about what is going on? Thanks.

Feb 2 '06 #3
Hi, thanks.

Yes, I have in the aspx page:

src="QueryResults.vb"
Inherits = "QueryResults.vb"

Hmm, it probably should be Inherits="QueryResults" instead.

I'll try it out tomorrow, Friday.
Bruce Barker wrote:
what does you page directive look like? do you have the aspx page inherit
from the codebehind?

-- bruce (sqlwork.com)

<er****@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hmm, looks like this is a tough question which baffled quite many
professional developers on board. :)

er****@gmail.com wrote:
I am switching from Java to the .Net framework.

In order to separate page layout design from the application code, I
studied the codebehind tutorial by John at
http://www.asp101.com/articles/john/...vs/default.asp

In my GetQueryResult.aspx, I defined a DataGrid as follows:

<asp:DataGrid ID ="dgQueryResults" runat="server"
AllowPaging="True"
PageSize="20"
PagerStyle-Mode="NumericPages"
PagerStyle-HorizontalAlign="Right"
OnPageIndexChanged="dgQueryResult_Page"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
CellPadding="3"
CellSpacing="0"
HeaderStyle-BackColor="#aaaadd"
AlternatingItemStyle-BackColor="#eeeeee" />

And in a VB file separate from GetQueryResult.aspx, I have:

Public Class QueryResult

Sub dgQueryResult_Page(sender As System.Object, _
e As
System.Web.UI.WebControls.DataGridPageChangedEvent Args)
dgQueryResults.CurrentPageIndex = e.NewPageIndex
Call BindData(dgQueryResults)
End Sub

Sub BindData(dgDataGrid As System.Web.UI.WebControls.DataGrid)
'// I defined BindData Sub here and it works great.
End Sub
End Class

But, when I check out the GetQueryResult.aspx page from the browser, I
get the following error message:

Compiler Error Message: BC30456: 'dgQueryResult_Page' is not a member
of 'ASP.query_results_aspx'.

I don't understand this. I do have dgQueryResult_Page defined in the
class. Any idea about what is going on? Thanks.


Feb 2 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Henri | last post by:
Hi, I've built a custom control named Tree in MyNameSpace.Tree compiled into dans MyNameSpace.Tree.dll I've then designed a page index.asp with its code in index.aspx.vb (class PageIndex)....
1
by: Zenobia | last post by:
How do I bind an array, arrayList or even a stack to a repeater containing hyperlinks. The data structure (array, arrayList or even a stack) has dates in ISO format "YYYY-MM-DD". The repeated...
0
by: blackstaronline.net | last post by:
Hi, I'm using .NET V2.0 I have been using un-compiled code behind pages for my .net app using "Src" in the @Page. I randomly get an Initialized Culture error when trying to access the page....
1
by: Mohammed Banat | last post by:
All my pages work just fine on development, but as soon as I publish (deploy), I always get Compiler Error Message: BC30456: 'InitializeCulture' is not a member of 'ASP.default_aspx'. This...
3
by: Mauricio Pires | last post by:
All my pages work just fine on development, but as soon as I publish (deploy) to a W2K Server with .Net Framework 2.0 , I always get Compiler Error Message: BC30456: 'InitializeCulture' is not a...
0
by: ydesilets | last post by:
I my name is Yohan. Id did have an error like BC30456: 'Title' is not a member of 'ASP.... I looked in many forum without success. Then I found something related to the BC30456 error number. ...
7
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. I'm...
0
by: jmawebco | last post by:
I have a project I'm working on in VS2005 using vb.net with a MSSql 2005 backend. Everytime I try to run the application I get the same error message; ********* ERROR ********* Compilation...
4
by: MyndPhlyp | last post by:
My desk has been beaten to a pulp by my forehead over this. In my page's codebehind, IntelliSense recognizes the Methods in my homegrown Class. That tells me the Imports directive is finding the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.