protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { return; } string src = ""; string masterPage = Page.MasterPageFile; int i = masterPage.LastIndexOf("/"); string masterPageName = masterPage.Substring(i + 1).Split('.')[0]; if (ImgType == "HOMEPAGE_IMG") { src = SYSLookup.GetLookupNameByValue("HOMEPAGE_IMG", masterPageName); } else if (ImgType == "CONTENTPAGE_IMG") { src = SYSLookup.GetLookupNameByValue("CONTENTPAGE_IMG", masterPageName); } imgRender.Src = src; }
public static string GetLookupNameBuValue(string type, string value) { return(SYSLookup.GetLookupNameByValue(type, value)); }