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