How to enable the Strict / Infer option on an aspx VB.NET page without code behind the file?

Umm, I think my questions in the title:

How to enable the Strict / Infer option on an aspx VB.NET page without code behind the file?

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

    End Sub
</script>
+4
source share
2 answers
<%@ Page Language="VB" Strict="true" %>
+13
source

Change the top line to

<%@ Page Language="VB" strict="True" %>
+3
source

Source: https://habr.com/ru/post/1698416/


All Articles