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

new Page class

Hi all,
I was discussing with some colleguees about developing a new Page
class.
Some says that it's impossible defining a new Page class without
hineriting
System.Web.UI.Page
Others says that it's possible to develop a new Page class that doesn't

hinerits System.Web.UI.Page.
I think it's possible,but I'm not able to demonstrate... any help?

Thank you in advance!
Regards

Marco

Nov 20 '05 #1
2 1002
It is possible to develop a class that does not inherit System.Web.UI.Page,
and that serves the same purpose as System.Web.UI.Page, yes.

Help? Well, the following link is to the freely-downloadable Microsoft .Net
1.1 SDK. It has everything you need to know in it.

http://www.microsoft.com/downloads/d...displaylang=en

I can give you a few suggestions as to where to start in your study, with
regards to this particular topic. First, you will need to study the
structure and inheritance hierarchy from which System.Web.UI.Page was
derived. At its root, it is a System.Web.UI.Control. This means that it has
everything in it that every System.Web.UI.Control has. It immediately
inherits System.Web.UI.TemplateControl. This provides the templating
functionality which it has, just like a System.Web.UI.UserControl. It
implements IHttpHandler, which is what provides its capability of handling
and responding to HTTP requests from a client. Because IHttpHandler relies
on .Net configuration files, you will also want to study up on configuration
files.

Once you understand all of the above, you will be able to write your own
"equivalent" of a System.Web.UI.Page class. Of course, if you just want to
win an argument with a "colleague," it may not be worth the trouble. Some
people will go to great lengths to win an argument, however, Perhaps you are
one of them.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

<m.**********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi all,
I was discussing with some colleguees about developing a new Page
class.
Some says that it's impossible defining a new Page class without
hineriting
System.Web.UI.Page
Others says that it's possible to develop a new Page class that doesn't

hinerits System.Web.UI.Page.
I think it's possible,but I'm not able to demonstrate... any help?

Thank you in advance!
Regards

Marco

Nov 20 '05 #2
Thank you Kevin!
Now I wanna myPageClass!!
Now I'm trying to understand all structure and inheritance hierarchy of
Page Class.
I'm looking to SDK documentation, but I'm finding it not very helpful
for my objective!
Any suggestion, please!

But i'm thinking it will be very hard... and maybe not productive?
If I will develop a new page Class and all my new application will
implement it,
what will happen when there will be a new NET framework upgrade?

Thanks
Marco

Nov 21 '05 #3

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
5
by: ozie | last post by:
Hi , I am new to ASP.NET. I was reading about Page class in one of the ASP.NET books and am confused with the way the Page class is actually implemented.What is didnt understand in when is this...
4
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
9
by: John Smith | last post by:
Hi, I have this problem. I have a page class in code behind called "WebForm1" and I have another class called "Class1". Now in Class1 I am creating ImageButton and I am adding event handler...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
7
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was...
1
by: rsteph | last post by:
I've got some product information pages, with images and text, all setup within a table. I'm trying to add a small image in the upper right hand corner of the content div (where all the important...
7
by: Andy B | last post by:
I have a class I am creating for data access. I need to access controls from inside the class that are on a particular page. How do I do this? or is creating an instance of the page class and using...
1
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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: 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: 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...
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.