473,513 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

strict="true" - Not working in asp.net 2 and VS2005 ??

We are in the process of moving from .net 1.1 to 2.0 and I dont seem to
be able to resolve this problem.

In VS2003 the Option Strict was swtiched on in the options menu and
this was stored in a project file.

In VS2005 there is no project file so this is now stored in the
web.config. My web.config shows this :-

<compilation debug="true" strict="true" explicit="true">

This should ofcourse prevent such lines in the code behind like below
from occuring.

dim x as int32
x = "12"

However the IDE seems to ignore this option altogether.

Can anyone shed some light on what I am doing wrong?

In desparation I have to put Option Strict On at the top of each class,
but surely there is a better way of doing this?

Jan 30 '06 #1
3 1344
In the IDE.
On the Tools menu, choose Options.
Expand Projects and Solutions node.
Choose VB Defaults.
Modify the Option Strict setting

Jan 30 '06 #2
Hi.

I have the same problem. Changing the VB Defaults so that Option
Strict is On does not resolve the problem. Any suggestions?

-roncli

Feb 20 '06 #3
Yes,

see this:
http://lab.msdn.microsoft.com/produc...2-e99573d03c6e

It's going to be fixed in next Service Pack for ASP.NET.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

<ro****@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hi.

I have the same problem. Changing the VB Defaults so that Option
Strict is On does not resolve the problem. Any suggestions?

-roncli

Feb 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4534
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
2
1443
by: Michael MacDonald | last post by:
I have written a simple program that calculates a running $ total. This program uses a checkbox to acknowledge that that version of the ticket is desired and it checks the Qty box to see how many...
2
1941
by: Lau Lei Cheong | last post by:
Hello, Actually, I'm wondering if there's anything of the sort avaliable in the wild - a developer oriented W3C browser. It's kinda W3C's online validation service, just that it runs on locahost...
11
1778
by: .Net Sports | last post by:
I need to convert some C# ?Conditionals over to vb.net (most likely in vb.net using If..Then statements), but the C#2VBNETconverter by KamalPatel isn't converting them: string PurchaseType =...
4
13760
by: dc15 | last post by:
For an intro to VB project I have to write a program which takes an amount of Miles, Yards, and Inches.....and converts it to metric (KM, M, and CM) when all values are entered to the input text...
9
2301
by: =?Utf-8?B?VG9ueQ==?= | last post by:
Can anybody tell why IsNumeric("5-") is true?
29
2394
by: Java script Dude | last post by:
Greetings, Now I can understand that 0 equal false, but should "" also equal false? Apparently the answer is yes. When I test both Firefox and IE, they both say ""==false . I assume this goes...
24
8179
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any technical reason to make this distinction, and...
0
7161
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5089
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.