目标 .NET Framework 版本是否可以不在 web.config 中设置,而是直接在以下页面中设置?:
<%@ Page Language="C#" Debug="true" %>
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.IO" %>
..............
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
.......
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
........
</head>
<body>
.........
</body>
</html>