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(Syst em.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\Temp orary
ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.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\T emporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Code.f-uu1gjt.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configurati on\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.EnterpriseSer vices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseS ervices.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Service s\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dl l"
/R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\assembly\dl3\1759 7bee\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__b7 7a5c561934e089\System.dll"
/out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 \Temporary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.dll" /D:DEBUG=1
/debug+ /define:_MYTYPE=\"Web\"
/imports:Microsoft.VisualBasic,System,System.Collec tions,System.Collections.Specialized,System.Config uration,System.Text,System.Text.RegularExpressions ,System.Web,System.Web.Caching,System.Web.SessionS tate,System.Web.Security,System.Web.Profile,System .Web.UI,System.Web.UI.WebControls,System.Web.UI.We bControls.WebParts,System.Web.UI.HtmlControls
"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.0.vb"
"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.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\Temp orary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.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\Temp orary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.0.vb(69) :
error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Me.__controlSkins(__BuildControl__control15_skinKe y) = New
System.Web.UI.ControlSkin(GetType(PDS.WebControls. GridViewSort),
AddressOf Me.__BuildControl__control15)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.0.vb(427) :
error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Dim __ctrl As PDS.WebControls.GridViewSort =
CType(ctrl,PDS.WebControls.GridViewSort)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 2270
I have been having the same problem, it looks to me as if when the
themes are compiled they are not inheriting the references from the
parent project (well lack of project in this case). Also if you look at
the debugger output you will see that the themes are being generated
using VB. I tried adding in an <%@ imports %> tag to import the correct
assembly but that generated an invalid tag error.
It looks to me as if the ASP.Net 2.0 themes are a massive hack added at
the last minute.
aspnet20vb_mike wrote: 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(Syst em.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\Temp orary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.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\T emporary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Code.f-uu1gjt.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configurati on\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.EnterpriseSer vices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseS ervices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Service s\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dl l" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\assembly\dl3\1759 7bee\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__b7 7a5c561934e089\System.dll" /out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 \Temporary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collec tions,System.Collections.Specialized,System.Config uration,System.Text,System.Text.RegularExpressions ,System.Web,System.Web.Caching,System.Web.SessionS tate,System.Web.Security,System.Web.Profile,System .Web.UI,System.Web.UI.WebControls,System.Web.UI.We bControls.WebParts,System.Web.UI.HtmlControls "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.0.vb" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.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\Temp orary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.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\Temp orary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.0.vb(69) : error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Me.__controlSkins(__BuildControl__control15_skinKe y) = New System.Web.UI.ControlSkin(GetType(PDS.WebControls. GridViewSort), AddressOf Me.__BuildControl__control15)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\etchweb2\7dbaa6bc\543bc072\App_Theme_PDS.sex g2wte.0.vb(427) : error BC30002: Type 'PDS.WebControls.GridViewSort' is not defined.
Dim __ctrl As PDS.WebControls.GridViewSort = CType(ctrl,PDS.WebControls.GridViewSort) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Somesh Bartakkay |
last post by:
I recently seen a small GUI program with Skins allplied.
the library used for that is Activeskin.
i wanna know weather Any GUi-Skins are available for pythons GUI ?
or how to use the activeskins...
|
by: Shimon Sim |
last post by:
I have a custom composite control
I have following property
|
by: Suzanne |
last post by:
Hi all,
I'm reposting this message as I'm experiencing this problem more and
more frequently :
I really hope someone out there can help me as I've been tearing my
hair out on this one for a...
|
by: J R M |
last post by:
I've developed a custom control (it's basically a drop-down list and
then a couple of textboxes to include meta-data for the selection) that
I'm embedding into another custom control (the idea is...
|
by: sean_mcad |
last post by:
We are starting to standardize what we have been doing with our web
applications and I have a “cost-benefit” question when it comes to some
server controls.
Main two examples is
Plain text...
|
by: rizwanahmed24 |
last post by:
Hello
i have made a custom control. i have placed a panel on it. I want this
panel to behave just like the normal panel. The problem i was having is
that the panel on my custom control doesnt...
|
by: Ron |
last post by:
I would like some more information on custom controls, what they can
do and things like that, what you would use them for etc...
Can anyone here share some examples of what you have used a custom...
|
by: New Bee |
last post by:
Hi,
I have been looking at Themes and Skins today and now resonably understand
how they work at a ground level. But I have a couple of questions.
1. ) StyleSheetTheme
I dont understand...
|
by: Cirene |
last post by:
Im thinking about purchasing the RadControls for ASP.NET AJAX, by Telerik.
Any advice, suggestions, or opinions? What has been your experience?
Link: ...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: MeoLessi9 |
last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |