ASP.Net, where do I put Option Strict?

  • Thread starter Thread starter annoyedtuna
  • Start date Start date
A

annoyedtuna

I'm trying to enable Option Strict in my .aspx pages.

However, i can't figure out where to put the Option Strict statement.

<%@ Page Language="VB" Debug="True" %>
<%@ Import Namespace="AnnoyedTuna" %>
<%@ Import Namespace="System.Data" %>
<script language="vb" runat="server">

Sub Page_Load

....


If I put it at the beginning of the page, I'm told that the "Statement
is not valid inside a method."

If I put it anywhere else, I'm told that "'Option' statements must
precede any declarations or 'Imports' statements."

Can someone point out the corrrect usage of Option Strict in aspx files
for pme please?
 
Back
Top