ASP.Net, where do I put Option Strict?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top