473,786 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to turn Strict "off"?

Even though I have set Strict Off, it is still on, thus causing this error.
Here is the code in a templated Column of a DataGrid: (XPpro, Framework 1.1)

<ItemTemplate >
<TABLE width="100%">
<TR>
<TD class="gridItem StyleNormal" align="left" width="50%"><%# Databinder.Eval (Container.Data Item, "CustomerNa me") %></TD>
<TD class="gridItem StyleNormal" align="left" width="30%"><%# Databinder.Eval (Container.Data Item, "BusinessCatego ryDesc") %></TD>
<TD class="gridItem StyleNormal" align="left" width="20%"><%# Databinder.Eval (Container.Data Item, "NameFirst" ) + " " + Databinder.Eval (Container.Data Item, "NameLast") %></TD>
</TR>
</TABLE>
</ItemTemplate>

--------------------------------------------------------------------------------
The error message says:

C:\winnt\system 32> "c:\winnt\micro soft.net\framew ork\v1.1.4322\v bc.exe" /t:library /utf8output /R:"c:\winnt\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll"/R:"c:\winnt\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s ystem.web.servi ces.dll" /R:"c:\winnt\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll" /R:"c:\winnt\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll" /R:"c:\winnt\ass embly\gac\syste m.web.mobile\1. 0.5000.0__b03f5 f7f11d50a3a\sys tem.web.mobile. dll" /R:"c:\winnt\mic rosoft.net\fram ework\v1.1.4322 \temporary asp.net files\uniproweb application1\03 182950\6e42cb10 \assembly\dl2\0 323ba7e\207b2de f_2547c301\unip rodatatier1.dll " /R:"c:\winnt\ass embly\gac\syste m.data\1.0.5000 .0__b77a5c56193 4e089\system..d ata.dll" /R:"c:\winnt\ass embly\gac\syste m.enterpriseser vices\1.0.5000. 0__b03f5f7f11d5 0a3a\system.ent erpriseservices .dll" /R:"c:\winnt\mic rosoft.net\fram ework\v1.1.4322 \temporary asp.net files\uniproweb application1\03 182950\6e42cb10 \assembly\dl2\1 3199096\b026eaf 0_2547c301\unip rowebapplicatio n1.dll" /R:"c:\winnt\mic rosoft.net\fram ework\v1.1.4322 \temporary asp.net files\uniproweb application1\03 182950\6e42cb10 \n-6ek_3q.dll" /R:"c:\winnt\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .dll" /out:"C:\WINNT\M icrosoft.NET\Fr amework\v1.1.43 22\Temporary ASP.NET Files\uniproweb application1\03 182950\6e42cb10 \3uimztuq.dll" /D:DEBUG=1 /debug+ /win32resource:" C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary ASP.NET Files\uniproweb application1\03 182950\6e42cb10 \3uimztuq.res" "C:\WINNT\Micro soft.NET\Framew ork\v1.1.4322\T emporary ASP.NET Files\uniproweb application1\03 182950\6e42cb10 \3uimztuq.0.vb"
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

D:\Documents and Settings\AWC\My Documents\UniPr o\UniproWebAppl ication1\frmCus tomerSelect.asp x(60) : error BC30038: Option Strict On prohibits operands of type Object for operator '+'.

target.SetDataB oundString(2, System.Convert. ToString(Databi nder.Eval(Conta iner.DataItem, "NameFirst" ) + Databinder.Eval (Container.Data Item, "NameLast") ))
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~
D:\Documents and Settings\AWC\My Documents\UniPr o\UniproWebAppl ication1\frmCus tomerSelect.asp x(60) : error BC30038: Option Strict On prohibits operands of type Object for operator '+'.

target.SetDataB oundString(2, System.Convert. ToString(Databi nder.Eval(Conta iner.DataItem, "NameFirst" ) + Databinder.Eval (Container.Data Item, "NameLast") ))
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

When you look at the compiled part is shows Strick On.
Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerate d>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '------------------------------------------------------------------------------
Line 10:
Line 11: Option Strict On
Line 12: Option Explicit On
Line 13:
Line 14: Imports ASP
Line 15: Imports Microsoft.Visua lBasic
Line 16: Imports System


I have replaced "Strick On" with "Strict Off" in all projects, but it still thinks it's on. I also changed the Build options for each project.

Where is it getting set ON???? I even set Explicit Off, but it didn't change either.

Thanks,
Andy
ac***@bellsouth .net

Nov 17 '05 #1
1 6817
You may not have strict really off. YOu need to check the project file and make sure it is set to off there, as well, as Strict can be set on a project basis. Also, check the @ directive in the page. It may be something like:

<%@ Page language="VB" CodeBehind="Thi sPage.aspx.vb" strict="on" %>

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

*************** *************** *************** *************** *************** *****
Think Outside the Box!
*************** *************** *************** *************** *************** *****
"Andy Crawford" <ac***@bellsout h.net> wrote in message news:ph******** *******@fe03.at l2.webusenet.co m...
Even though I have set Strict Off, it is still on, thus causing this error.
Here is the code in a templated Column of a DataGrid: (XPpro, Framework 1.1)

<ItemTemplate >
<TABLE width="100%">
<TR>
<TD class="gridItem StyleNormal" align="left" width="50%"><%# Databinder.Eval (Container.Data Item, "CustomerNa me") %></TD>
<TD class="gridItem StyleNormal" align="left" width="30%"><%# Databinder.Eval (Container.Data Item, "BusinessCatego ryDesc") %></TD>
<TD class="gridItem StyleNormal" align="left" width="20%"><%# Databinder.Eval (Container.Data Item, "NameFirst" ) + " " + Databinder.Eval (Container.Data Item, "NameLast") %></TD>
</TR>
</TABLE>
</ItemTemplate>

--------------------------------------------------------------------------------
The error message says:

C:\winnt\system 32> "c:\winnt\micro soft.net\framew ork\v1.1.4322\v bc.exe" /t:library /utf8output /R:"c:\winnt\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll"/R:"c:\winnt\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s ystem.web.servi ces.dll" /R:"c:\winnt\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll" /R:"c:\winnt\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll" /R:"c:\winnt\ass embly\gac\syste m.web.mobile\1. 0.5000.0__b03f5 f7f11d50a3a\sys tem.web.mobile. dll" /R:"c:\winnt\mic rosoft.net\fram ework\v1.1.4322 \temporary asp.net files\uniproweb application1\03 182950\6e42cb10 \assembly\dl2\0 323ba7e\207b2de f_2547c301\unip rodatatier1.dll " /R:"c:\winnt\ass embly\gac\syste m.data\1.0.5000 .0__b77a5c56193 4e089\system..d ata.dll" /R:"c:\winnt\ass embly\gac\syste m.enterpriseser vices\1.0.5000. 0__b03f5f7f11d5 0a3a\system.ent erpriseservices .dll" /R:"c:\winnt\mic rosoft.net\fram ework\v1.1.4322 \temporary asp.net files\uniproweb application1\03 182950\6e42cb10 \assembly\dl2\1 3199096\b026eaf 0_2547c301\unip rowebapplicatio n1.dll" /R:"c:\winnt\mic rosoft.net\fram ework\v1.1.4322 \temporary asp.net files\uniproweb application1\03 182950\6e42cb10 \n-6ek_3q.dll" /R:"c:\winnt\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .dll" /out:"C:\WINNT\M icrosoft.NET\Fr amework\v1.1.43 22\Temporary ASP.NET Files\uniproweb application1\03 182950\6e42cb10 \3uimztuq.dll" /D:DEBUG=1 /debug+ /win32resource:" C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary ASP.NET Files\uniproweb application1\03 182950\6e42cb10 \3uimztuq.res" "C:\WINNT\Micro soft.NET\Framew ork\v1.1.4322\T emporary ASP.NET Files\uniproweb application1\03 182950\6e42cb10 \3uimztuq.0.vb"
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

D:\Documents and Settings\AWC\My Documents\UniPr o\UniproWebAppl ication1\frmCus tomerSelect.asp x(60) : error BC30038: Option Strict On prohibits operands of type Object for operator '+'.

target.SetDataB oundString(2, System.Convert. ToString(Databi nder.Eval(Conta iner.DataItem, "NameFirst" ) + Databinder.Eval (Container.Data Item, "NameLast") ))
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~
D:\Documents and Settings\AWC\My Documents\UniPr o\UniproWebAppl ication1\frmCus tomerSelect.asp x(60) : error BC30038: Option Strict On prohibits operands of type Object for operator '+'.

target.SetDataB oundString(2, System.Convert. ToString(Databi nder.Eval(Conta iner.DataItem, "NameFirst" ) + Databinder.Eval (Container.Data Item, "NameLast") ))
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

When you look at the compiled part is shows Strick On.
Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerate d>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '------------------------------------------------------------------------------
Line 10:
Line 11: Option Strict On
Line 12: Option Explicit On
Line 13:
Line 14: Imports ASP
Line 15: Imports Microsoft.Visua lBasic
Line 16: Imports System


I have replaced "Strick On" with "Strict Off" in all projects, but it still thinks it's on. I also changed the Build options for each project.

Where is it getting set ON???? I even set Explicit Off, but it didn't change either.

Thanks,
Andy
ac***@bellsouth .net

Nov 17 '05 #2

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

Similar topics

3
8108
by: n_o_s_p_a__m | last post by:
someone please advise
2
3425
by: Mary Kerrigan | last post by:
I have an IIS virtual directory on a Windows 2000 server that is configured as an application. When viewing the site remotely, if there is an error we get a screen telling us to turn customErrors OFF. We have done this, yet we still get this message. The only way we have of finding out what the "real" error is is to sit at that box. Why isn't this working??? The site is not a "site", it is a virtual directory, and it is an application....
0
1699
by: wurlds_wurst_coder | last post by:
A co-worker apparently checked the Show Disassembly Automatically checkbox at some point. This is really inconvenient to disassemble every dll we use everytime. How do I turn this option OFF?? TIA introspectre
0
337
by: Jerry | last post by:
Is it possible to turn off the "$" and "," that appear in "money" formatted columns so I can dump the table in a numeric format? The man page hints that lc_monetary controls the formatting but I cannot find any clues on what to do... Apparently money cannot be cast to anything. I don't think it will be hard to write a custom tcl/perl script that takes a "copy checks to...." command to do the task
2
1508
by: pedestrian via SQLMonster.com | last post by:
I wonder is there any way I can turn off the "Documentation Feedback" section of the Books Online at the bottom of the pages... I'm printing some Books Online pages for own reference. Thanks in advance... -- Message posted via SQLMonster.com http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-general/200706/1
4
11425
by: Morgan Cheng | last post by:
Days ago, I post a question on how to make SoapHttpClientProtocol instance make new TCP connection for each web service request. Now, I found how. SoapHttpClientProtocol has a protected method GetWebRequest(System.Uri uri) which returns a WebRequest instance. Though MSDN doesn't make clear statement. I experiment and prove that SoapHttpClientProtocol use this method to create HttpWebRequest for HTTP request. So, I override this...
1
2104
by: Wayne | last post by:
Is there some way of turning off "ClearType" in the Access 2007 runtime? Perhaps a registry tweak? On all of my LCD screens "ClearType" makes fonts, especially bold fonts, in Access appear extremely blurry.
4
7629
by: PH.D.Condidater.Li.Ning | last post by:
Hi, all, I am using an uninitialised variable that generating a 'Run-Time Check Failure #3' when the debug version is running. The code is complex and changing it would be risky, so how do I turn off this annoying run time check? in platform : vista + visual studio 2005
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10104
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
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 we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.