Hello. can anyone help me on how to instantiate the class inside App_Code/BLL folder to my aspx.cs?
Under MyWebApplication Project is an App_Code folder. Inside App_Code folder is BLL folder where I put my class BLLEmployee.
Here's my aspx.cs code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MyWebApplication.Employee
{
public partial class Employee_New : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnAdd_OnClick(object sender, EventArgs e)
{
}
protected void btnClear_OnClick(object sender, EventArgs e)
{
}
}
}
And here's my BLLEmployee.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace MyWebApplication.App_Code.BLL
{
public class BLLEmployee
{
public string firstName { get; set; }
public string middleName { get; set; }
public string lastName { get; set; }
}
}
Thank you in advance :-)