Re: How would you handle needed "System" class/table/form in application?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Ok, the below won't fly and I don't want to rename all my (form) classes to,
like, "SystemForm" or "frmSystem". Thanks.

System.aspx
-------------
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Forms
{
public partial class System : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Classes.System System = new Classes.System();
Response.Write(System.SelectSystem());
}
}
}


"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.20a395bb2be7493d49@xxxxxxxxxxxxxxxxxxxxxxx
Ronald S. Cook <rcook@xxxxxxxxxxxx> wrote:
Well, the web form inherits from System.Web... so even if I wrap it in a
namespace, that doesn't fly.

Without an example of where it's actually stopping you, it's hard to
help much more, I'm afraid.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


.



Relevant Pages

  • Re: Using VB.NET and C# projects in one solution in VS2002/2003
    ... Make absolutely sure you're "using" the right namespace. ... at the DLL in Reflector to be absolutely sure of what's in there. ... Jon Skeet - ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: including a sub directory
    ... in Interface1.cs is declared in a different namespace to the class in ... I'm going to be a pedant I should at least ... Jon Skeet - ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Refactoring class location
    ... namespace over the existing namespace declaration at the top of the class... ... Jon Skeet - ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to change name of the project?
    ... Is there some way of being able to rename the project and the namespace ... (or more manually using the Edit/Find and Replace/Replace in Files command). ... change the name of your solution in Solution Explorer. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: FQDN?
    ... If you can do it with one namespace, what's the benefit of managing two? ... I'm betting that Compaq internal network is not ... possible to rename the domain. ... Trust yourself. ...
    (microsoft.public.windows.server.general)