Exemple #1
0
        public MvcHtmlString JQueryMobileMasterLayout(WebViewPage webPage, string appName, string jqmVersion, bool removeiPhoneBars)
        {
            var sb = new StringBuilder();

            sb.AppendLine("<!DOCTYPE html>");
            sb.AppendLine("<html>");
            sb.AppendLine("<head>");
            sb.AppendLine("<title>" + appName + "</title>");
            sb.AppendLine(JQueryMobileHeader(jqmVersion, removeiPhoneBars).ToString());
            sb.AppendLine("</head> ");
            sb.AppendLine("<body>");
            sb.AppendLine("<div data-role='page' data-url='" + webPage.Request.FilePath + "'>");
            sb.AppendLine(DialogsScript(webPage).ToString());
            sb.AppendLine(webPage.RenderBody().ToString());
            sb.AppendLine("</div>");
            sb.AppendLine("</body>");
            sb.AppendLine("</html>");
            return(MvcHtmlString.Create(sb.ToString()));
        }