Search code examples
asp.netvb.netoption-infer

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


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>

Solution

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