Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     WebActivity.LogActivity("Parent emailed instructor", true);
     if (!IsPostBack)
     {
         Debug.WriteLine(Session["UserID"].ToString());
         students = QueryHandler.GetStudents(Session["UserID"].ToString());
         PopStudDropDown(students);
         ddlStudent.DataBind();
     }
 }
Esempio n. 2
0
    protected void btnEnroll_Click(object sender, EventArgs e)
    {
        SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["conString"].ConnectionString);

        connection.Open();
        string cmdText = ViewState["enrollQuery"].ToString();

        System.Diagnostics.Debug.WriteLine(cmdText);
        SqlCommand cmd = new SqlCommand(cmdText, connection);

        cmd.ExecuteNonQuery();
        lbShoppingCart.Items.Clear();
        cmd.CommandText          = "";
        ViewState["enrollQuery"] = "";
        MessageBox.Show("Enrolled! Please download the required waiver forms from the 'My Account' tab, fill out the forms, and bring to the first class.");
        WebActivity.LogActivity("Student enrolled", true);
        //Response.Redirect("MyAccount.aspx");
    }
Esempio n. 3
0
    //TODO: make it so that student can only sign up for a class after all their evaluations are complete
    // we need an enrollment table
    //TODO: get lesson plans and link them to lessonplan cell, see comment below
    //TODO: add in links for lesson plans
    //TODO: add "last log in" and Bucks counter somehow once we figure out how to do those
    //TODO: add session variable for student that is logged in
    //TODO: add class date to command arguments for shopping cart
    // Need to be able to hover over class descriptions and read before enrolling



    protected void Page_Load(object sender, EventArgs e)
    {
        WebActivity.LogActivity("Student searched classes", true);
        GenerateTable();
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     WebActivity.LogActivity("Parent Viewed Student Content", true);
 }