I defined a class in the "Datasource.cs" file. In my another asp.net file "FineUIGrid.aspx.cs" I need to quote the class's method I defined in the Datasource.cs. But when I quote the method there is an error "the name 'class1' does not exist in the current context". How can solve this problem? Datasource.cs code:
using System;
using System.Data;
using System.Configuration;
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;
using System.Text;
namespace FineUI.Examples
{
public class Class1
{
public Class1()
{
}
public string write()
{
string AD = "This is a FineUI DataGrid Example";
return AD;
}
}
}
FineUIGrid.aspx.cs code:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
namespace FineUIProject
{
protected void page_load(object sender, EventArgs e)
{
string information = Class1.write();
}
}