JSMITH242B
Programmer
Hi Group,
This error is causing me grief!!
I've already spent a couple of days trying to compile the class, now this!!
I've got the following in my vb class (I'm using code-behind)
Imports System
Imports System.Web
Imports System.Web.UI.WebControls
Imports Microsoft.VisualBasic
Imports System.Web.UI.Page
Imports System.Data
Imports System.Data.SqlClient
I use the following command line to compile:
vbc /t:library /r:system.web.dll,system.dll, system.data.dll myPage.vb
I get the following error message:
Compiler Error Message: BC30451: Name 'dsetSiteData1' is not declared.
This is the line in my .aspx file that causes the error:
align="center" MS_POSITIONING="GridLayout"><asp:datagrid id=dagSiteData style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 16px" runat="server" Width="736px" CssClass="datagrid-basic" DataSource="<%# dsetSiteData1 %>" AutoGenerateColumns="False">
In my code-behind, I've got the following declaration:
Protected WithEvents dsetSiteData1 As pbay_web.dsetSiteData
Why is this occurring?
Any explanations/solutions appreciated!!
Regards
This error is causing me grief!!
I've already spent a couple of days trying to compile the class, now this!!
I've got the following in my vb class (I'm using code-behind)
Imports System
Imports System.Web
Imports System.Web.UI.WebControls
Imports Microsoft.VisualBasic
Imports System.Web.UI.Page
Imports System.Data
Imports System.Data.SqlClient
I use the following command line to compile:
vbc /t:library /r:system.web.dll,system.dll, system.data.dll myPage.vb
I get the following error message:
Compiler Error Message: BC30451: Name 'dsetSiteData1' is not declared.
This is the line in my .aspx file that causes the error:
align="center" MS_POSITIONING="GridLayout"><asp:datagrid id=dagSiteData style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 16px" runat="server" Width="736px" CssClass="datagrid-basic" DataSource="<%# dsetSiteData1 %>" AutoGenerateColumns="False">
In my code-behind, I've got the following declaration:
Protected WithEvents dsetSiteData1 As pbay_web.dsetSiteData
Why is this occurring?
Any explanations/solutions appreciated!!
Regards