private string RenderHtml(IComponent component, IPayLoad context) { if (string.IsNullOrEmpty(ViewHtml)) { UserInfo user = Authorization.Instance.CurrentUser(); string userid = string.Empty; if (user != null) { userid = user.UserID; } ViewHtml = new ViewResult(layOutViewName, new PageModel() { ActiveMenuIndex = 0, DisplayName = userid, IsLogin = true }).Execute(); ViewHtml = ViewHtml.Replace("@ComponentBody@", BuildContent(context)); } return ViewHtml; }