protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Session["resNo"] = Convert.ToInt32(Request.QueryString["resNo"]); Resident r = EIDdbResidentManagement.GetResidentcByResidentId((int)Session["resNo"]); ArrayList arr = EIDdbUserManagement.GetStaffs(); txbName.Text = r.Resident_name; ddGender.SelectedValue = r.Gender; txbnric.Text = r.NRIC; tbxaddress.Text = r.Address; tbxYear.Text = Convert.ToString(r.DOB.Year); tbxMouth.Text = Convert.ToString(r.DOB.Month); tbxDay.Text = Convert.ToString(r.DOB.Day); ddThn.SelectedValue = r.Ethic_group; tbxContact.Text = Convert.ToString(r.Contact_no); tbxemailaddress.Text = r.Email; tbxDes.Text = r.Des_of_disabiliy; } }
protected void Page_Load(object sender, EventArgs e) { ArrayList arr = EIDdbUserManagement.GetStaffs(); }