如何以编程方式编译aspx网页 [英] How to compile aspx web page programmatically

查看:200
本文介绍了如何以编程方式编译aspx网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有动态创建的asp.net网页,我想以编程方式预编译网页并希望以编程方式捕获编译错误列表,就像我们构建页面时一样在asp.net中,显示错误列表中的错误详细信息列表

i have asp.net web page which is dynamically created, i want to pre-compile web page pro grammatically and want to capture list of compilation errors pro grammatically, which is like when we build page in asp.net, shows list of error details in error list

推荐答案

在运行应用程序之前无法编译动态页面。你唯一能做的就是首先将生成的代码(html)写入页面并进行编译。
you cann't compile the dynamic page before running the app. Only thing you can do is first write the code(html) generated to a page and compile that.


这篇关于如何以编程方式编译aspx网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆