我如何与一个Web服务器加载它们之前编译Asp.Net aspx页面? [英] How can I compile Asp.Net Aspx Pages before loading them with a webserver?

查看:118
本文介绍了我如何与一个Web服务器加载它们之前编译Asp.Net aspx页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这真是烦人的Visual Studio隐藏在aspx页面错别字(不是code后面)。
如果编译器编译会他们,我会得到一个编译错误。

It's really annoying that visual studio hides typos in aspx pages (not the code behind). If the compiler would compile them, I would get a compile error.

推荐答案

编译在编译时的页面。见麦克哈德洛的帖子在这里:

Compile the pages at compile time. See Mike Hadlow's post here:

<一个href=\"http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html\">http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html

这篇关于我如何与一个Web服务器加载它们之前编译Asp.Net aspx页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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