public static string GetBlockItemHtml(Page __Page, int __nId) { string str; HtmlBlockItem item; string str2; string str3; string str4; int num; int num2; HtmlBlockDefinition definition; string str5; string str6; Type type; object obj2; IHtmlBlockAble able; Exception exception; string str7; bool flag; str = ""; Label_0007: try { item = HtmlBlockItem.Get(__nId); if ((item == null) != null) { goto Label_015D; } if (((item.DefinitionId == -99) == 0) != null) { goto Label_00E6; } str2 = item.Parameter; if (((str2.IndexOf("?") > 0) == 0) != null) { goto Label_0060; } str2 = str2 + "&"; goto Label_006C; Label_0060: str2 = str2 + "?"; Label_006C: str = Util.GetUrl(str2 + string.Format("fromgeturl={0}", FunUtil.SetLoginSession(__Page)), 120); str3 = "<!-- HOMECONTROL BEGIN -->"; str4 = "<!-- HOMECONTROL END -->"; num = str.IndexOf(str3); if ((num < 0) != null) { goto Label_00E3; } num += str3.Length; num2 = str.IndexOf(str4, num); if (((num2 > num) == 0) != null) { goto Label_00E2; } str = str.Substring(num, num2 - num); Label_00E2 :; Label_00E3 : goto Label_015C; Label_00E6: str5 = HtmlBlockDefinition.Get(item.DefinitionId).EntityName; str6 = item.Parameter; type = PageUtil.GetType(str5); if (((type != null) == 0) != null) { goto Label_015B; } obj2 = Activator.CreateInstance(type); if (((obj2 == null) ? 1 : (((obj2 as IHtmlBlockAble) > null) == 0)) != null) { goto Label_015A; } able = (IHtmlBlockAble)obj2; str = able.GetHtml(__Page, str6); Label_015A :; Label_015B :; Label_015C :; Label_015D : goto Label_016E; } catch (Exception exception1) { Label_0160: exception = exception1; str = exception.Message; goto Label_016E; } Label_016E: str7 = str; Label_0174: return(str7); }