Solved

namespace - Inherits System.Web.UI.Page /web.config

Posted on 2008-06-14
1
1,085 Views
Last Modified: 2008-06-21
Hi,

I put this in my web.config:

      <namespaces>
        <clear />
        <add namespace="System" />
        <add namespace="System.Web" />
        <add namespace="System.Web.UI" />
        <add namespace="System.Web.UI.WebControls" />
        <add namespace="System.Web.UI.WebControls.WebParts" />
        <add namespace="System.Xml" />
        <add namespace="System.Xml.Xsl" />
        <add namespace="System.Xml.XPath" />
        <add namespace="System.Xml.XPath.xPathExpression" />
        <add namespace="System.Web.UI.HtmlControls" />
      </namespaces>

does this mean I don't need to have a codefile for each aspx?  The only thing in all the codefiles is

Public Class MyPage
    Inherits System.Web.UI.Page
      
End Class


My masterpage has:

Partial Class ParentPage
    Inherits System.Web.UI.MasterPage
End Class

If I still need to inherit the "System.Web.UI.Page" is there a way of linking directly to a BasePage through the web.config?

I am not using very much code and most of it is shared.

Thanks
Tania

0
Comment
Question by:Tania_Farmer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
Tania_Farmer earned 0 total points
ID: 21839839
Found the answer on Scott Gu's blog relating to his XML-LInq rss feed sample.

If in web.config don't need in each page.
T
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How can I do Unit Testing with Session ? 1 41
C# XML Get Values 4 54
SQL Server Serialization error 8 48
Help with viewing image in ReportViewer 14 32
Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question