protected void Page_Load(object sender, EventArgs e) { string name = Session["code"].ToString(); MedicalAutomationCommunity.DAO.Center aCenter = aCenterManager.GetCenterByName(name); codeTextBox.Text = aCenter.Code; passwordTextBox.Text = aCenter.Password; }