I just got moved to a project that has an inheritance structure sort of like
this:
MyWebPage.aspx
inherits ---> MyWebPage.ASPX.VB
inherits ----> Utility.VB
inherits -----> DHTMLMenu.vb
inherits ----> System.WEb.UI.Page
Whenever I load up my aspx page, i get an error because it can't find the
System.Web.UI.Page being inherited from the code behind. Is there a way of
solving this without re-organizing the page structure? I know it's sloppy,
but I can't change it. 9 1542
Ryan,
I have applications with several layers of inheritance, and it works
well. From what you have stated, there is no reason why is should not work.
Try to create a test project to isolate the offending code and debug.
Best regards,
Jeffrey Palermo
"Ryan Ternier" <rt******@icompasstech.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl... I just got moved to a project that has an inheritance structure sort of
like this:
MyWebPage.aspx inherits ---> MyWebPage.ASPX.VB inherits ----> Utility.VB inherits -----> DHTMLMenu.vb inherits ----> System.WEb.UI.Page
Whenever I load up my aspx page, i get an error because it can't find the System.Web.UI.Page being inherited from the code behind. Is there a way
of solving this without re-organizing the page structure? I know it's
sloppy, but I can't change it.
Jeff,
Thank you for the reply.
Sorry if I wasn't clearer. The code works, compiles, runes etc. What my
issue is whenever I load jthe ASPX file, it tells me it can't find the page
behind. As well, any coding done on the ASPX side, does not give me any
inteli sense for anything i do.
The only way I can fix this, it is very dirty, is to cut out the Page
declarative line at the top, save the ASPX page, then open it again. Then
paste the top line back in.
/RT
"Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote in
message news:O4**************@TK2MSFTNGP12.phx.gbl... Ryan, I have applications with several layers of inheritance, and it works well. From what you have stated, there is no reason why is should not
work. Try to create a test project to isolate the offending code and debug.
Best regards, Jeffrey Palermo
"Ryan Ternier" <rt******@icompasstech.com> wrote in message news:O9**************@TK2MSFTNGP10.phx.gbl... I just got moved to a project that has an inheritance structure sort of like this:
MyWebPage.aspx inherits ---> MyWebPage.ASPX.VB inherits ----> Utility.VB inherits -----> DHTMLMenu.vb inherits ----> System.WEb.UI.Page
Whenever I load up my aspx page, i get an error because it can't find
the System.Web.UI.Page being inherited from the code behind. Is there a way of solving this without re-organizing the page structure? I know it's sloppy, but I can't change it.
If i were u since you would be using it ..
To save ur time just re organize it..
GDLUCK
"Ryan Ternier" wrote: I just got moved to a project that has an inheritance structure sort of like this:
MyWebPage.aspx inherits ---> MyWebPage.ASPX.VB inherits ----> Utility.VB inherits -----> DHTMLMenu.vb inherits ----> System.WEb.UI.Page
Whenever I load up my aspx page, i get an error because it can't find the System.Web.UI.Page being inherited from the code behind. Is there a way of solving this without re-organizing the page structure? I know it's sloppy, but I can't change it.
Hi Ryan,
Perhaps you could post the "@Page" declaration at the top of your ASPX page.
It should contain a "CodeBehind" attribute that Visual Studio.Net uses to
identify the CodeBehind file at design-time. The "CodeBehind" attribute is
not necessary to the running of the Page at run-time.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
"Ryan Ternier" <rt******@icompasstech.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl... Jeff,
Thank you for the reply.
Sorry if I wasn't clearer. The code works, compiles, runes etc. What my issue is whenever I load jthe ASPX file, it tells me it can't find the
page behind. As well, any coding done on the ASPX side, does not give me any inteli sense for anything i do.
The only way I can fix this, it is very dirty, is to cut out the Page declarative line at the top, save the ASPX page, then open it again. Then paste the top line back in.
/RT "Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote
in message news:O4**************@TK2MSFTNGP12.phx.gbl... Ryan, I have applications with several layers of inheritance, and it works well. From what you have stated, there is no reason why is should not work. Try to create a test project to isolate the offending code and debug.
Best regards, Jeffrey Palermo
"Ryan Ternier" <rt******@icompasstech.com> wrote in message news:O9**************@TK2MSFTNGP10.phx.gbl... I just got moved to a project that has an inheritance structure sort
of like this:
MyWebPage.aspx inherits ---> MyWebPage.ASPX.VB inherits ----> Utility.VB inherits -----> DHTMLMenu.vb inherits ----> System.WEb.UI.Page
Whenever I load up my aspx page, i get an error because it can't find the System.Web.UI.Page being inherited from the code behind. Is there a
way of solving this without re-organizing the page structure? I know it's sloppy, but I can't change it.
Sure,
Here's one:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Search.aspx.vb"
Inherits="ActionItems2.Search" %>
---
Inside Search.aspx.vb:
Public Class Search
Inherits Utility
Inside Utility:
Public Class Utility
Inherits DHTMLMenu
Inside DHTMLMenu:
Public Class DHTMLMenu
Inherits System.Web.UI.Page
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eq**************@TK2MSFTNGP14.phx.gbl... Hi Ryan,
Perhaps you could post the "@Page" declaration at the top of your ASPX
page. It should contain a "CodeBehind" attribute that Visual Studio.Net uses to identify the CodeBehind file at design-time. The "CodeBehind" attribute is not necessary to the running of the Page at run-time.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Neither a follower nor a lender be.
"Ryan Ternier" <rt******@icompasstech.com> wrote in message news:eR**************@TK2MSFTNGP10.phx.gbl... Jeff,
Thank you for the reply.
Sorry if I wasn't clearer. The code works, compiles, runes etc. What my issue is whenever I load jthe ASPX file, it tells me it can't find the page behind. As well, any coding done on the ASPX side, does not give me any inteli sense for anything i do.
The only way I can fix this, it is very dirty, is to cut out the Page declarative line at the top, save the ASPX page, then open it again.
Then paste the top line back in.
/RT "Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote in message news:O4**************@TK2MSFTNGP12.phx.gbl... Ryan, I have applications with several layers of inheritance, and it
works well. From what you have stated, there is no reason why is should not work. Try to create a test project to isolate the offending code and debug.
Best regards, Jeffrey Palermo
"Ryan Ternier" <rt******@icompasstech.com> wrote in message news:O9**************@TK2MSFTNGP10.phx.gbl... > I just got moved to a project that has an inheritance structure sort of like > this: > > MyWebPage.aspx > inherits ---> MyWebPage.ASPX.VB > inherits ----> Utility.VB > inherits -----> DHTMLMenu.vb > inherits ----> System.WEb.UI.Page > > Whenever I load up my aspx page, i get an error because it can't
find the > System.Web.UI.Page being inherited from the code behind. Is there a way of > solving this without re-organizing the page structure? I know it's sloppy, > but I can't change it. > >
Okay, according to your @Page directive, the CodeBehind file is in the same
folder as the .aspx file, correct?
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
"Ryan Ternier" <rt******@icompasstech.com> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl... Sure,
Here's one:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Search.aspx.vb" Inherits="ActionItems2.Search" %> --- Inside Search.aspx.vb:
Public Class Search Inherits Utility
Inside Utility:
Public Class Utility Inherits DHTMLMenu
Inside DHTMLMenu:
Public Class DHTMLMenu Inherits System.Web.UI.Page
"Kevin Spencer" <ks******@takempis.com> wrote in message news:eq**************@TK2MSFTNGP14.phx.gbl... Hi Ryan,
Perhaps you could post the "@Page" declaration at the top of your ASPX page. It should contain a "CodeBehind" attribute that Visual Studio.Net uses
to identify the CodeBehind file at design-time. The "CodeBehind" attribute
is not necessary to the running of the Page at run-time.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Neither a follower nor a lender be.
"Ryan Ternier" <rt******@icompasstech.com> wrote in message news:eR**************@TK2MSFTNGP10.phx.gbl... Jeff,
Thank you for the reply.
Sorry if I wasn't clearer. The code works, compiles, runes etc. What
my issue is whenever I load jthe ASPX file, it tells me it can't find the page behind. As well, any coding done on the ASPX side, does not give me
any inteli sense for anything i do.
The only way I can fix this, it is very dirty, is to cut out the Page declarative line at the top, save the ASPX page, then open it again. Then paste the top line back in.
/RT "Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo>
wrote in message news:O4**************@TK2MSFTNGP12.phx.gbl... > Ryan, > I have applications with several layers of inheritance, and it works > well. From what you have stated, there is no reason why is should
not work. > Try to create a test project to isolate the offending code and
debug. > > Best regards, > Jeffrey Palermo > > "Ryan Ternier" <rt******@icompasstech.com> wrote in message > news:O9**************@TK2MSFTNGP10.phx.gbl... > > I just got moved to a project that has an inheritance structure
sort of > like > > this: > > > > MyWebPage.aspx > > inherits ---> MyWebPage.ASPX.VB > > inherits ----> Utility.VB > > inherits -----> DHTMLMenu.vb > > inherits ----> System.WEb.UI.Page > > > > Whenever I load up my aspx page, i get an error because it can't find the > > System.Web.UI.Page being inherited from the code behind. Is there
a way > of > > solving this without re-organizing the page structure? I know
it's > sloppy, > > but I can't change it. > > > > > >
Yes.
The code behind is in the same directory as the ASPX page.
The Utility, and DHTMLMenu files are in a seperate directory.
/RT
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... Okay, according to your @Page directive, the CodeBehind file is in the
same folder as the .aspx file, correct?
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Neither a follower nor a lender be.
"Ryan Ternier" <rt******@icompasstech.com> wrote in message news:uN**************@TK2MSFTNGP12.phx.gbl... Sure,
Here's one:
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Search.aspx.vb" Inherits="ActionItems2.Search" %> --- Inside Search.aspx.vb:
Public Class Search Inherits Utility
Inside Utility:
Public Class Utility Inherits DHTMLMenu
Inside DHTMLMenu:
Public Class DHTMLMenu Inherits System.Web.UI.Page
"Kevin Spencer" <ks******@takempis.com> wrote in message news:eq**************@TK2MSFTNGP14.phx.gbl... Hi Ryan,
Perhaps you could post the "@Page" declaration at the top of your ASPX page. It should contain a "CodeBehind" attribute that Visual Studio.Net uses to identify the CodeBehind file at design-time. The "CodeBehind"
attribute is not necessary to the running of the Page at run-time.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Neither a follower nor a lender be.
"Ryan Ternier" <rt******@icompasstech.com> wrote in message news:eR**************@TK2MSFTNGP10.phx.gbl... > Jeff, > > Thank you for the reply. > > Sorry if I wasn't clearer. The code works, compiles, runes etc. What my > issue is whenever I load jthe ASPX file, it tells me it can't find
the page > behind. As well, any coding done on the ASPX side, does not give me any > inteli sense for anything i do. > > The only way I can fix this, it is very dirty, is to cut out the
Page > declarative line at the top, save the ASPX page, then open it again. Then > paste the top line back in. > > /RT > "Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote in > message news:O4**************@TK2MSFTNGP12.phx.gbl... > > Ryan, > > I have applications with several layers of inheritance, and it works > > well. From what you have stated, there is no reason why is should not > work. > > Try to create a test project to isolate the offending code and debug. > > > > Best regards, > > Jeffrey Palermo > > > > "Ryan Ternier" <rt******@icompasstech.com> wrote in message > > news:O9**************@TK2MSFTNGP10.phx.gbl... > > > I just got moved to a project that has an inheritance structure sort of > > like > > > this: > > > > > > MyWebPage.aspx > > > inherits ---> MyWebPage.ASPX.VB > > > inherits ----> Utility.VB > > > inherits -----> DHTMLMenu.vb > > > inherits ----> System.WEb.UI.Page > > > > > > Whenever I load up my aspx page, i get an error because it can't find > the > > > System.Web.UI.Page being inherited from the code behind. Is
there a way > > of > > > solving this without re-organizing the page structure? I know it's > > sloppy, > > > but I can't change it. > > > > > > > > > > > >
Yes, I have thought about this.
This is a System with over 100 dynamic aspx pages, not to mention all
objects, and classes we have. Time does not permit me to reorganize it until
it's been fully released.
This is an issue I've had with .NET for awhile, and don't know how to fix
it. Even on my home systems I get this error :(
"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com... If i were u since you would be using it .. To save ur time just re organize it.. GDLUCK
"Ryan Ternier" wrote:
I just got moved to a project that has an inheritance structure sort of
like this:
MyWebPage.aspx inherits ---> MyWebPage.ASPX.VB inherits ----> Utility.VB inherits -----> DHTMLMenu.vb inherits ----> System.WEb.UI.Page
Whenever I load up my aspx page, i get an error because it can't find
the System.Web.UI.Page being inherited from the code behind. Is there a way
of solving this without re-organizing the page structure? I know it's
sloppy, but I can't change it.
Well, Ryan, I'm currently out of ideas. I have built one ASP.Net app which
uses an inherited Page class, but only one layer of inheritance, and didn't
have the problem you mentioned. So, you have my sympathies. :-(
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
"Ryan Ternier" <rt******@icompasstech.com> wrote in message
news:#w**************@TK2MSFTNGP09.phx.gbl... Yes. The code behind is in the same directory as the ASPX page.
The Utility, and DHTMLMenu files are in a seperate directory.
/RT
"Kevin Spencer" <ks******@takempis.com> wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl... Okay, according to your @Page directive, the CodeBehind file is in the same folder as the .aspx file, correct?
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Neither a follower nor a lender be.
"Ryan Ternier" <rt******@icompasstech.com> wrote in message news:uN**************@TK2MSFTNGP12.phx.gbl... Sure,
Here's one:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Search.aspx.vb" Inherits="ActionItems2.Search" %> --- Inside Search.aspx.vb:
Public Class Search Inherits Utility
Inside Utility:
Public Class Utility Inherits DHTMLMenu
Inside DHTMLMenu:
Public Class DHTMLMenu Inherits System.Web.UI.Page
"Kevin Spencer" <ks******@takempis.com> wrote in message news:eq**************@TK2MSFTNGP14.phx.gbl... > Hi Ryan, > > Perhaps you could post the "@Page" declaration at the top of your
ASPX page. > It should contain a "CodeBehind" attribute that Visual Studio.Net
uses to > identify the CodeBehind file at design-time. The "CodeBehind" attribute is > not necessary to the running of the Page at run-time. > > -- > HTH, > Kevin Spencer > .Net Developer > Microsoft MVP > Neither a follower > nor a lender be. > > "Ryan Ternier" <rt******@icompasstech.com> wrote in message > news:eR**************@TK2MSFTNGP10.phx.gbl... > > Jeff, > > > > Thank you for the reply. > > > > Sorry if I wasn't clearer. The code works, compiles, runes etc.
What my > > issue is whenever I load jthe ASPX file, it tells me it can't find the > page > > behind. As well, any coding done on the ASPX side, does not give
me any > > inteli sense for anything i do. > > > > The only way I can fix this, it is very dirty, is to cut out the Page > > declarative line at the top, save the ASPX page, then open it
again. Then > > paste the top line back in. > > > > /RT > > "Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote > in > > message news:O4**************@TK2MSFTNGP12.phx.gbl... > > > Ryan, > > > I have applications with several layers of inheritance, and
it works > > > well. From what you have stated, there is no reason why is
should not > > work. > > > Try to create a test project to isolate the offending code and debug. > > > > > > Best regards, > > > Jeffrey Palermo > > > > > > "Ryan Ternier" <rt******@icompasstech.com> wrote in message > > > news:O9**************@TK2MSFTNGP10.phx.gbl... > > > > I just got moved to a project that has an inheritance
structure sort > of > > > like > > > > this: > > > > > > > > MyWebPage.aspx > > > > inherits ---> MyWebPage.ASPX.VB > > > > inherits ----> Utility.VB > > > > inherits -----> DHTMLMenu.vb > > > > inherits ----> System.WEb.UI.Page > > > > > > > > Whenever I load up my aspx page, i get an error because it
can't find > > the > > > > System.Web.UI.Page being inherited from the code behind. Is there a > way > > > of > > > > solving this without re-organizing the page structure? I know it's > > > sloppy, > > > > but I can't change it. > > > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Noah Coad [MVP .NET/C#] |
last post by:
How do you make a member of a class mandatory to override with a _new_
definition? For example, when inheriting from
System.Collections.CollectionBase, you are required to implement certain...
|
by: Jeff |
last post by:
Greetings
I am beginning a web app. I am using C# aspx forms for my web pages.
Is it possible to create/use one aspx file as a base from which to
derive other aspx files? I can not get this to...
|
by: Rob Shorney |
last post by:
Hi,
How do I post the data from webform1.asp to webform2.aspx
In classic asp you can use the request.form but when I do this in webform2 I
get nothing.
--
Regards
|
by: roger janssens via DotNetMonster.com |
last post by:
hello all.
i'm used to scripting in php. there, you just include(bla.php) and it
works. so i have a template that defines my layout and stays the same
forever, but in that file, there's a table...
|
by: Me |
last post by:
Hi,
I inherited a web application that has several very similar forms for
gathering user data. User's must choose the form that best fits their needs
and fill it out. Each form has about 15...
|
by: Charles Law |
last post by:
I want a set of controls that all have a border, like a group box. I thought
I would create a base control containing just a group box from which my set
of controls could inherit. Assuming that...
|
by: Alex Satrapa |
last post by:
There's some mention in the (old!) documentation that constraints such as foreign keys won't include data from inheriting tables, eg:
CREATE TABLE foo (
id SERIAL PRIMARY KEY
);
CREATE TABLE...
|
by: Christian Blackburn |
last post by:
Hi Gang,
I have trouble getting my single page Aspx pages to allow the imports
and or inherits command. Can someone reply with an example.
Thanks,
Christian Blackburn
|
by: DotNetNewbie |
last post by:
Hi,
VS.NET is not showing me any intellisense on a page that references a
master page in the codebehind.
(the codebehind references a custom class that inherits from
web.ui.page, and that...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |