473,378 Members | 1,564 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,378 software developers and data experts.

Missing Something on pageBaseType?

The documentation on the <page> element on the configuration file states--

pageBaseType Specifies a code-behind class that .aspx pages inherit by
default.

I have tried everything I can think of and have managed to get the
configuration file to be processed without error but have not managed to get
the Page Base Type set to my class. Am I missing something here?

I'm using VS 2003 and can use my class by editing it into a page but have
not been able to get it in using pageBaseType.

Thank You
Nov 18 '05 #1
4 3112
How did you specify the value for it?I believe it needs to be
pageBaseType="assemblyName, typeName" format. Is it that way?

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Perley" <Pe****@newsgroup.nospam> wrote in message
news:9A**********************************@microsof t.com...
The documentation on the <page> element on the configuration file states--

pageBaseType Specifies a code-behind class that .aspx pages inherit by
default.

I have tried everything I can think of and have managed to get the
configuration file to be processed without error but have not managed to get the Page Base Type set to my class. Am I missing something here?

I'm using VS 2003 and can use my class by editing it into a page but have
not been able to get it in using pageBaseType.

Thank You

Nov 18 '05 #2
Actually I have pageBaseType="typeName, assemblyName" Which is the only
thing that would allow the config file to be processed without error.

"Girish Bharadwaj" wrote:
How did you specify the value for it?I believe it needs to be
pageBaseType="assemblyName, typeName" format. Is it that way?

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Perley" <Pe****@newsgroup.nospam> wrote in message
news:9A**********************************@microsof t.com...
The documentation on the <page> element on the configuration file states--

pageBaseType Specifies a code-behind class that .aspx pages inherit by
default.

I have tried everything I can think of and have managed to get the
configuration file to be processed without error but have not managed to

get
the Page Base Type set to my class. Am I missing something here?

I'm using VS 2003 and can use my class by editing it into a page but have
not been able to get it in using pageBaseType.

Thank You


Nov 18 '05 #3
You are right. I am wrong.

I tried it with a couple hand-coded (instead of VS.NET) aspx file +
assembly. And it works just fine.
So, I think the problem is that VS.NET does this trick with ASPX pages which
is to create that aspx.cs files which are the base class for the actual ASPX
file. And, of course, VS.NET depends on that relation for things to work.
Basically, the use of <Inherits> attribute on @Page states that you want to
use a particular class as the base class explicitly.

I guess, you are stuck. Because, there is an intermediary class derived
from Page class which is the base for the ASPX page. If you remove the
"Inherits" from that attribute, it will probably work. But then, VS.NET
will re-insert it again when you edit the file.
Good news is that VS.NET 2005 fixes it but the bad news is that, well, it
aint here.

Of course, somebody else might have a better idea.

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Perley" <Pe****@newsgroup.nospam> wrote in message
news:1D**********************************@microsof t.com...
Actually I have pageBaseType="typeName, assemblyName" Which is the only
thing that would allow the config file to be processed without error.

"Girish Bharadwaj" wrote:
How did you specify the value for it?I believe it needs to be
pageBaseType="assemblyName, typeName" format. Is it that way?

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Perley" <Pe****@newsgroup.nospam> wrote in message
news:9A**********************************@microsof t.com...
The documentation on the <page> element on the configuration file states--
pageBaseType Specifies a code-behind class that .aspx pages inherit by
default.

I have tried everything I can think of and have managed to get the
configuration file to be processed without error but have not managed to
get
the Page Base Type set to my class. Am I missing something here?

I'm using VS 2003 and can use my class by editing it into a page but

have not been able to get it in using pageBaseType.

Thank You


Nov 18 '05 #4
Thanks. I wouldn't of thought of going outside of VS.NET (bad habit).

Story of my life ... out of luck

Thanks again.

"Girish Bharadwaj" wrote:
You are right. I am wrong.

I tried it with a couple hand-coded (instead of VS.NET) aspx file +
assembly. And it works just fine.
So, I think the problem is that VS.NET does this trick with ASPX pages which
is to create that aspx.cs files which are the base class for the actual ASPX
file. And, of course, VS.NET depends on that relation for things to work.
Basically, the use of <Inherits> attribute on @Page states that you want to
use a particular class as the base class explicitly.

I guess, you are stuck. Because, there is an intermediary class derived
from Page class which is the base for the ASPX page. If you remove the
"Inherits" from that attribute, it will probably work. But then, VS.NET
will re-insert it again when you edit the file.
Good news is that VS.NET 2005 fixes it but the bad news is that, well, it
aint here.

Of course, somebody else might have a better idea.

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Perley" <Pe****@newsgroup.nospam> wrote in message
news:1D**********************************@microsof t.com...
Actually I have pageBaseType="typeName, assemblyName" Which is the only
thing that would allow the config file to be processed without error.

"Girish Bharadwaj" wrote:
How did you specify the value for it?I believe it needs to be
pageBaseType="assemblyName, typeName" format. Is it that way?

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Perley" <Pe****@newsgroup.nospam> wrote in message
news:9A**********************************@microsof t.com...
> The documentation on the <page> element on the configuration file states-- >
> pageBaseType Specifies a code-behind class that .aspx pages inherit by
> default.
>
> I have tried everything I can think of and have managed to get the
> configuration file to be processed without error but have not managed to get
> the Page Base Type set to my class. Am I missing something here?
>
> I'm using VS 2003 and can use my class by editing it into a page but have > not been able to get it in using pageBaseType.
>
> Thank You


Nov 18 '05 #5

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

Similar topics

102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
17
by: Justin Emlay | last post by:
I'm hopping someone can help me out on a payroll project I need to implement. To start we are dealing with payroll periods. So we are dealing with an exact 10 days (Monday - Friday, 2 weeks). ...
6
by: Just Me | last post by:
My Task List contains the following: At least one reference is missing the 'Name' attribute. Any suggestion on how toe find which project is missing it? Solution contains 25 projects. ...
0
by: Suresh.Eddala | last post by:
Hi, I have added base class to all my pages in App_Code folder, and then added following line of code in web.config file. <system.web> <pages theme="Blue" pageBaseType="ThemedPage" />...
8
by: Elijah Cardon | last post by:
1 1 1 1 1 1 2 2 2 1 1 1 3 3 3 1 1 1 4 4 1 2 1 1 5 5 2 2 1 1 6 6 3 2 1 1 7...
2
by: ken | last post by:
We have a user that has reported the following error when starting up our client application that uses a web service on our back end: System.Configuration.ConfigurationException: Missing required...
0
by: amiben | last post by:
Hi everyone. I have this problem that I am experiencing when I move a certain site from one hosting to another hosting location. This is why I think this problem is not related to ASP code, rather...
12
by: The Frog | last post by:
Hi all, Does anyone have a way to print forms at design time directly from the IDE? I am not a great fan of the print screen to paint to print method. I would really like to know if anyone has a...
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.