我有一个从“Login.aspx”页面的 btnContinue_Click 事件调用的 Employee 类对象。我无法看到智能感知中的任何属性。Employee.cs 文件与 Web 应用程序位于同一项目中。令我困惑的是,aspx.cs 识别Employee oEmp = new Employee();
得非常好。
我在下面的代码中做错了什么?
这是我的代码:
employee.cs
public class Employee
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string DateOfBirth { get; set; }
public string EMailAddress { get; set; }
public string PhoneNumber { get; set; }
public string CorpID { get; set; }
public string SignOn { get; set; }
public string Password { get; set; }
}
登录.aspx.cs
protected void btnEmployeeLogin_Click(object sender, EventArgs e)
{
try
{
if (LogInValidated())
{
Employee oEmp = new Employee();
//oEmp.
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}