コード例 #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        StudentEntity std = new StudentEntity();

        std.NAME     = TxtName.Text.ToString();
        std.SURNAME  = TxtSurName.Text.ToString();
        std.NUMBER   = TxtNumber.Text.ToString();
        std.PHOTO    = TxtPhoto.Text.ToString();
        std.PASSWORD = TxtPassword.Text.ToString();
        std.ID       = Convert.ToInt32(TxtID.Text);
        StudentBusiness.UpdateStdBusiness(std);
        Response.Redirect("StudentList.aspx");
    }