Beispiel #1
0
        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;
        }
Beispiel #2
0
 public static string GetLookupNameBuValue(string type, string value)
 {
     return(SYSLookup.GetLookupNameByValue(type, value));
 }