Пример #1
0
        public void WriteToHttpResponse(HttpContext context)
        {
            if (string.IsNullOrEmpty(this.VirtualPath))
            {
                this.VirtualPath = context.Request.FilePath;
            }
            context.Response.ContentType = "text/html";
            string html = RenderUtil.RenderAspx(context, VirtualPath, Model);

            context.Response.Write(html);
            context.Response.End();
        }