<p>Umm, I guess my questions in the title:</p>

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

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

    End Sub
&lt;/script&gt;
</code></pre>

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