Page Inheritance in ASP.NET 2.0

C

Craig Street

Hi

How do i create a base page in ASP.NET 2.0? I don't want to use master pages
as I don't need any visual inheritance.

You could do this simply in ASP.NET 1.1 by creating a base page that
inherted form System.Web.UI.Page and the ensuring that all of your pages
inherited from your own base pages.

With the advent of partial classes this seems somewhat more difficult.

I've got the following code
 
G

Guest

You are missing the rest of the post. Realize that you can still use
CodeBehind, for inheritance, in .NET 2.0. You will have to work within the
constrains of having everything in code behind, but that is the world you are
in currently, so there is no change.

There are some good articles on building proper ASP.NET pages in 2.0. The
one that comes to mind is:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/BedrockASPNET.asp

If the ASP.NET road show code is available, I believe there was a sample of
page inheritance in 2.0. You will probably have to ping one of the speakers
or try posting in the www.asp.net forums, as Rob and Scott both participate
there from time to time.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top