Solved

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

Posted on 2008-06-14
1
1,069 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

15 Experts available now in Live!

Get 1:1 Help Now