本文整理汇总了C#中DataAccessLayer.getEmpFirstname方法的典型用法代码示例。如果您正苦于以下问题:C# DataAccessLayer.getEmpFirstname方法的具体用法?C# DataAccessLayer.getEmpFirstname怎么用?C# DataAccessLayer.getEmpFirstname使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataAccessLayer
的用法示例。
在下文中一共展示了DataAccessLayer.getEmpFirstname方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (Session["userid"] != null)
{
DataAccessLayer DALayer = new DataAccessLayer();
int empId = Convert.ToInt32(Session["userid"]);
lnkLogin.Text = "Log Out";
lblWelcome.Visible = true;
lblWelcome.Text += DALayer.getEmpFirstname(empId);
ddlCarInfo.DataSource = DALayer.ReadRegisteredCars(empId);
Page.DataBind();
// ddlCarInfo.Attributes.Add("onChange", "return saveSelectedCarInfo();");
}
}
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
//if (!Page.IsPostBack)
//{
if (Session["userid"] != null)
{
DataAccessLayer dalGetFName = new DataAccessLayer();
int empId = Convert.ToInt32(Session["userid"]);
lnkLogin.Text = "Log Out";
//Modlock:24-10-2013:Swati:Added new menu Items:Start
NavigationMenu.Items.Add(new MenuItem
{
Text = "Home",
NavigateUrl = "~/UserAccount.aspx"
});
NavigationMenu.Items.Add(new MenuItem
{
Text = "About",
NavigateUrl = "~/About.aspx"
});
NavigationMenu.Items.Add(new MenuItem
{
Text = "My Cars",
NavigateUrl = "~/MyCars.aspx"
});
NavigationMenu.Items.Add(new MenuItem
{
Text = "My Routes",
NavigateUrl = "~/MyRoutes.aspx"
});
NavigationMenu.Items.Add(new MenuItem
{
Text = "Joined",
NavigateUrl = "~/JoinedPassengers.aspx"
});
//Modlog Start: Seema
if (!Page.IsPostBack)
{
lblWelcome.Visible = true;
lblWelcome.Text += dalGetFName.getEmpFirstname(empId);
}
//Modlog End : Seema
}
else
{
NavigationMenu.Items.Add(new MenuItem
{
Text = "Home",
NavigateUrl = "~/LoginPage.aspx"
});
NavigationMenu.Items.Add(new MenuItem
{
Text = "About",
NavigateUrl = "~/About.aspx"
});
}
//Modlock:24-10-2013:Swati:Added new menu Items:End
//}
}