Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now