A
aspnet20vb_mike
I have a Custom Control which inherits from GridView.
I call it GridViewSort and it is in a namespace "PDS.WebControls".
I add it to the Toolbox, drop it on my WebForm and it shows up and
works fine. But when I define a skinID for this Custom Control, I am
getting an error when it compiles.
I tried adding the Register directive in the skin file but that doesnot
help.
I have attached the following:
1.SkinID definition
2. Error Message
I see from the messages that the compiler fails on
GetType(PDS.WebControls.GridViewSort).
I do not know how to resolve that.
Any help will be appreciated.
Thanks!
SkinID Definition:
<cc1:GridViewSort SkinID="ContractListings" runat="server" Width="760"
CellPadding="2" Cellspacing="0" BorderWidth="1px" BackColor="White"
BorderColor="#297B6B">
<HeaderStyle Font-Bold="True" Font-Underline="False" ForeColor="Blue"
/>
</cc1:GridViewSort>
Compiler Error Message: BC30002: Type 'PDS.WebControls.GridViewSort' is
not defined.
Source Error:
Line 56: Private Shared __BuildControl__control14_skinKey As
Object =
System.Web.UI.PageTheme.CreateSkinKey(GetType(System.Web.UI.WebControls.Label),
"Rights")
Line 57:
Line 58: Private Shared __BuildControl__control15_skinKey As
Object =
System.Web.UI.PageTheme.CreateSkinKey(GetType(PDS.WebControls.GridViewSort),
"ContractListings")
Line 59:
Line 60: Public Sub New()
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb
Line: 58
Show Detailed Compiler Output:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE>
"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library
/utf8output
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Code.f-uu1gjt.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll"
/R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\assembly\dl3\17597bee\b29dfb60_bf7ac601\PDSWebControls.DLL"
/R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll"
/out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.dll" /DEBUG=1
/debug+ /define:_MYTYPE=\"Web\"
/imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls
"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb"
"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.1.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb(58) :
error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Private Shared __BuildControl__control15_skinKey As Object =
System.Web.UI.PageTheme.CreateSkinKey(GetType(PDS.WebControls.GridViewSort),
"ContractListings")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb(69) :
error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Me.__controlSkins(__BuildControl__control15_skinKey) = New
System.Web.UI.ControlSkin(GetType(PDS.WebControls.GridViewSort),
AddressOf Me.__BuildControl__control15)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb(427) :
error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Dim __ctrl As PDS.WebControls.GridViewSort =
CType(ctrl,PDS.WebControls.GridViewSort)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I call it GridViewSort and it is in a namespace "PDS.WebControls".
I add it to the Toolbox, drop it on my WebForm and it shows up and
works fine. But when I define a skinID for this Custom Control, I am
getting an error when it compiles.
I tried adding the Register directive in the skin file but that doesnot
help.
I have attached the following:
1.SkinID definition
2. Error Message
I see from the messages that the compiler fails on
GetType(PDS.WebControls.GridViewSort).
I do not know how to resolve that.
Any help will be appreciated.
Thanks!
SkinID Definition:
<cc1:GridViewSort SkinID="ContractListings" runat="server" Width="760"
CellPadding="2" Cellspacing="0" BorderWidth="1px" BackColor="White"
BorderColor="#297B6B">
<HeaderStyle Font-Bold="True" Font-Underline="False" ForeColor="Blue"
/>
</cc1:GridViewSort>
Compiler Error Message: BC30002: Type 'PDS.WebControls.GridViewSort' is
not defined.
Source Error:
Line 56: Private Shared __BuildControl__control14_skinKey As
Object =
System.Web.UI.PageTheme.CreateSkinKey(GetType(System.Web.UI.WebControls.Label),
"Rights")
Line 57:
Line 58: Private Shared __BuildControl__control15_skinKey As
Object =
System.Web.UI.PageTheme.CreateSkinKey(GetType(PDS.WebControls.GridViewSort),
"ContractListings")
Line 59:
Line 60: Public Sub New()
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb
Line: 58
Show Detailed Compiler Output:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE>
"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library
/utf8output
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Code.f-uu1gjt.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll"
/R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\assembly\dl3\17597bee\b29dfb60_bf7ac601\PDSWebControls.DLL"
/R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll"
/out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.dll" /DEBUG=1
/debug+ /define:_MYTYPE=\"Web\"
/imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls
"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb"
"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.1.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb(58) :
error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Private Shared __BuildControl__control15_skinKey As Object =
System.Web.UI.PageTheme.CreateSkinKey(GetType(PDS.WebControls.GridViewSort),
"ContractListings")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb(69) :
error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Me.__controlSkins(__BuildControl__control15_skinKey) = New
System.Web.UI.ControlSkin(GetType(PDS.WebControls.GridViewSort),
AddressOf Me.__BuildControl__control15)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sexg2wte.0.vb(427) :
error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Dim __ctrl As PDS.WebControls.GridViewSort =
CType(ctrl,PDS.WebControls.GridViewSort)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~