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

1.8k Views Asked by At

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?

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

    End Sub
</script>
2

There are 2 best solutions below

0
On BEST ANSWER
<%@ Page Language="VB" Strict="true" %>
0
On

Change the top line to

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