protected void PopulateUserInfo() { try { DataTable dt = null; DataRow dr = null; if (Request.QueryString["UserID"] != null || Session["UserName"] != null) { if (Request.QueryString["UserID"] != null) { intUserID = Convert.ToInt32(Request.QueryString["UserID"]); } else { strUserName = Session["UserName"].ToString(); intUserID = DataProxy.GetUserID(strUserName); } } dt = DataProxy.GetAllUserInfo(intUserID); if (dt != null) { if (dt.Rows.Count > 0) { dr = dt.Rows[0]; txtFirstName.Text = dr["FirstName"].ToString(); txtLastName.Text = dr["LastName"].ToString(); txtLoginName.Text = dr["UserName"].ToString(); txtOrganization.Text = dr["OrganizationName"].ToString(); txtEmail.Text = dr["Email"].ToString(); txtPhone.Text = dr["Phone"].ToString(); txtTitle.Text = dr["Title"].ToString(); ddlCountries.SelectedValue = dr["CountryID"].ToString(); ddlLanguages.SelectedValue = dr["LanguageID"].ToString(); rbASGMbr.SelectedValue = dr["AmphibianSpecialistGroupMember"].ToString(); txtUserCountries.Text = dr["CountryExpertise"].ToString(); } } } catch (Exception ex) { lblError.Text = ex.Message; } }