By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,394 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

ASP.Net, where do I put Option Strict?

P: n/a
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?

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
<%Page Strict="True"...

Marcie

On 4 May 2005 03:51:36 -0700, an*********@yahoo.co.uk wrote:
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?


Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.