using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL; using CY.Model; using CY.Infrastructure.Common; namespace CY.WebForm.Pages.webmanage { //吴辉 //印刷顾问-头像上传 public partial class EditMyPic : BasePage { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { EC_OnlineAdviserBLL bll_EC_OnlineAdviserBLL = new EC_OnlineAdviserBLL(); EC_OnlineAdviser m_EC_OnlineAdviser = bll_EC_OnlineAdviserBLL.GetModelByKeyid(Request["keyid"].ToInt32()); if (m_EC_OnlineAdviser != null) { if (!string.IsNullOrEmpty(m_EC_OnlineAdviser.LOGO) && System.IO.File.Exists(HttpContext.Current.Server.MapPath("~" + m_EC_OnlineAdviser.LOGO))) this.ImgR_G_Avatar.Src = m_EC_OnlineAdviser.LOGO; else this.ImgR_G_Avatar.Src = "../../images/admin/_LoadDefault.gif"; } else { this.ImgR_G_Avatar.Src = "../../images/admin/_LoadDefault.gif"; } } } } }