「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; }
}
Login.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());
}
}