Ask a Question related to Dreamweaver AppDev, Design and Development.
-
matthewsjames #1
Compiler Error Message: BC30451: Name 'tk' is notdeclared.
Hi Guys,
I have a MAJOR problem, I am using Dreamweaver MX and I am passing the below
parameters to a stored procedure which is meant to return me a dataset, but I
am getting the following error message
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details and
modify your source code appropriately.
Compiler Error Message: BC30451: Name 'tk' is not declared.
Source Error:
Line 15: <Parameter Name="@BatchID" Value='<%# 1 %>' Type="Int"
Size="4" Direction="Input" />
Line 16: <Parameter Name="@UserID" Value='<%# 1 %>' Type="Int"
Size="4" Direction="Input" />
Line 17: <Parameter Name="@UserInit" Value='<%# tk %>' Type="VarChar"
Size="2" Direction="Input" />
Line 18: <Parameter Name="@Rectype" Value='<%# b %>' Type="VarChar"
Size="1" Direction="Input" />
Line 19: </Parameters>
Source File: c:\inetpub\wwwroot\project1\myproject.aspx Line: 17
Show Detailed Compiler OutPut:
Show Complete Compilation Source:
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
here is the detailed complier output:
C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc. exe"
/t:library /utf8output
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__ b03f5f7f11d50a3a\system.web.d
ll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a 5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0 .5000.0__b03f5f7f11d50a3a\sys
tem.web.services.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__ b77a5c561934e089\system.xml.d
ll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary asp.net
files\project1\732688e7\27020ca7\assembly\dl2\a9bb 6144\00cf75b0_24c1c301\dreamwe
averctrls.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5 000.0__b03f5f7f11d50a3a\syste
m.web.mobile.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000 .0__b03f5f7f11d50a3a\system.d
rawing.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0_ _b77a5c561934e089\system.data
..dll"
/R:"c:\windows\assembly\gac\system.enterpriseservic es\1.0.5000.0__b03f5f7f11d50a
3a\system.enterpriseservices.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ Temporary ASP.NET
Files\project1\732688e7\27020ca7\sju6xyrr.dll" /debug-
/win32resource:"C:\WINDOWS\Microsoft.NET\Framework\ v1.1.4322\Temporary ASP.NET
Files\project1\732688e7\27020ca7\sju6xyrr.res"
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\project1\732688e7\27020ca7\sju6xyrr.0.vb"
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322.2032
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
c:\inetpub\wwwroot\project1\myproject.aspx(17) : error BC30451: Name 'tk' is
not declared.
CType(target,System.Web.UI.IAttributeAccessor).Set Attribute("Value",
System.Convert.ToString( tk ))
~~
c:\inetpub\wwwroot\project1\myproject.aspx(18) : error BC30451: Name 'b' is
not declared.
CType(target,System.Web.UI.IAttributeAccessor).Set Attribute("Value",
System.Convert.ToString( b ))
~
I have attached the code i am using........
please help....
Thanks
James
<%@ Page Language="VB" ContentType="text/html" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,cultu
re=neutral" %>
<MM:DataSet
runat="Server"
id="Procedure1"
IsStoredProcedure="true"
CreateDataSet="true"
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_Dat
aConnect1") %>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETY
PE_DataConnect1") %>'
CommandText="dbo.sp_returnresults"
Debug="true"<Parameters>>
<Parameter Name="@RETURN_VALUE" Type="Int" Direction="ReturnValue" />
<Parameter Name="@BatchID" Value='<%# 1 %>' Type="Int" Size="4"
Direction="Input" />
<Parameter Name="@UserID" Value='<%# 1 %>' Type="Int" Size="4"
Direction="Input" />
<Parameter Name="@UserInit" Value='<%# tk %>' Type="VarChar" Size="2"
Direction="Input" />
<Parameter Name="@Rectype" Value='<%# b %>' Type="VarChar" Size="1"
Direction="Input" />
</Parameters>
</MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<html>
<head>
<title>:: Project 1 ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0">
<table width="1000" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><img src="images/pgt_arrow.gif" width="9" height="9"><a
href="home.aspx" class="NavigationBread">Results</a></td>
</tr>
<tr>
<td width="10"><img src="images/spacer.gif" width="14" height="8"></td>
<td width="990"><br>
<img src="images/lc_resicon.gif" width="26" height="26"> My
Project Results<br>
<br> <br></td>
</tr>
<tr>
<td colspan="2" ><img src="images/spacer.gif" width="8" height="8"></td>
</tr>
</table>
<p> </p>
</body>
</html>
matthewsjames Guest
-
Compiler Error Message: BC30451: Name 'dsProduct' is not declared.
Hi dsProduct must be a property, and you defined it as function. bye "mareal" <m@m.com> wrote in message... -
Compiler Error Message: BC30201: Expression expected.
Error on Line 36 Line 34: <TABLE id="Table3" cellSpacing="2" cellPadding="2" width="100%" border="0"> Line 35: <TR> Line 36: <TD... -
Compiler Error Message: CS0123:
Hi Everyone...Can somebody help me figure out how to fix this error? I'm out of ideas! Thanks! CS0123: Method... -
Compiler Error Message: CS1595 (is Q318274 the whole story?)
We have a Web Service written in VB.NET (1.0 SP2) on W2K IIS5... One of our customers is reporting symptoms that sound exactly like those... -
Compiler Error Message: The compiler failed with error code 128.
Hi. I am having trouble running my aspx code. I created two simple webforms, which i try to run from two different directories one is giving me...



Reply With Quote

