Solved

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

Posted on 2008-06-14
1
1,079 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

810 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