Solved

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

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

621 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