I am pretty new to this ASP .NET thing, so I feel quite amputated. Nonetheless I think I have read that you can make a page reference in the C# code.
I have got an .aspx page which includes this line...
Code:
<%@ Page Language="C#" Debug="true" Inherits="OCMS" src="source/OCMScore.cs" %>
Then I have got a C# file with the following contents...
Code:
using System;
using System.Web;
using System.Web.UI;
using OCMSsetup;
public class OCMS : Page
{
public void Page_Load(Object oSender, EventArgs E)
{
Configuration config = new Configuration();
config.Write();
}
}
Finally I WOULD LIKE to have a file like this...
Code:
namespace OCMSsetup
{
public class Configuration
{
public Configuration()
{
}
public void Write()
{
Response.Write("something");
}
}
}
That is, I would like to be able to use the Page object from everywhere!
Is this possible and if 'yes' how?
Thanks
Jacob.