Esempio n. 1
0
 protected void btn_clockout_Click(object sender, EventArgs e)
 {
     if (dd_clockedin.SelectedItem != null)
     {
         VolunteerTimepunch.ClockOut(Convert.ToInt32(dd_clockedin.SelectedValue));
         ClockedInDataSource.Select(new DataSourceSelectArguments());
         ClockedInGridview.DataBind();
         ClockedInDataSource.DataBind();
         dd_clockedin.SelectedValue = null;
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["Permission"] == null)
     {
         Response.Redirect("~/Default.aspx");
     }
     else if (Session["Permission"].Equals("9"))
     {
         lbl_time.Text    = System.DateTime.Now.ToString();
         Session["Year"]  = System.DateTime.Now.Year.ToString();
         Session["Month"] = System.DateTime.Now.Month.ToString();
         Session["Day"]   = System.DateTime.Now.Day.ToString();
         SetLabels();
         ClockedInGridview.DataBind();
         dd_clockedin.DataBind();
         lbl_shoppers.Text = GetNumberOfVisitsToday();
     }
     else
     {
         Response.Redirect("~/Default.aspx");
     }
 }