如何在没有代码隐藏文件的情况下打开VB.NET aspx页面中的Option Strict / Infer?

时间:2022-12-04 08:10:58

Umm, I guess my questions in the title:

嗯,我想我的问题在标题中:

How do I turn on Option Strict / Infer in a VB.NET aspx page without a code behind file?

如何在没有代码隐藏文件的情况下打开VB.NET aspx页面中的Option Strict / Infer?

<%@ Page Language="VB" %>
<script runat="server">
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

    End Sub
</script>

2 个解决方案

#1


13  

<%@ Page Language="VB" Strict="true" %>

#2


3  

Change the top line to

将顶行更改为

<%@ Page Language="VB" strict="True" %>

#1


13  

<%@ Page Language="VB" Strict="true" %>

#2


3  

Change the top line to

将顶行更改为

<%@ Page Language="VB" strict="True" %>