ASP 判断Session变量是否存在的4种方法
1 If Session("sesName") = "" Then ...2 If Session("sesName") = Empty Then ...
3 If IsEmpty(Session("sesName")) Then ...
4 If Cint(Session("sesName")) = 0 Then ...
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
完整於web.config內容如下
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0"/> </system.web> <system.webServer> <staticContent> <mimeMap fileExtension=".json" mimeType="application/json" /> </staticContent> </system.webServer> </configuration>
ref: https://blog.kkbruce.net/2016/09/enabling-xml-document-transforms-for-all-asp-net-web-by-develop-time.html#.XoP1KGMzbRY