Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 530
Shawn Avatar asked Dec 06 '22 07:12

Shawn


2 Answers

<%@ Page Language="VB" Strict="true" %>
like image 161
IAmCodeMonkey Avatar answered Dec 30 '22 17:12

IAmCodeMonkey


Change the top line to

<%@ Page Language="VB" strict="True" %>
like image 22
Mitchel Sellers Avatar answered Dec 30 '22 17:12

Mitchel Sellers