CSPage CSThemePage

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 3 Replies | 2 Followers

Top 500 Contributor
55 Posts
Points 850
PKnopf posted on Mon, Sep 1 2008 7:14 PM

Is it possible to have my pages inherit something dif than CSPage or CSThemePage?

I would like for some pages to inherit from a page I have in an assembly (compiled).

I would just add CSPage in the inheritance hiarchy if my assembly wasn't closed, but it is.

Any work around?

  • | Post Points: 20

All Replies

Top 10 Contributor
3,669 Posts
Points 55,515
TelligentSupportTeam

If you're running on CS2008, having pages inherit from a different base class should not cause a problem, although you may lose some of the functionality provided by the CSThemePage / CSPage base classes (e.g. setting the user's current location in Who is Online).

If you're using CS207, inheriting from CSPage / CSThemePage is a requirement to use any form of Chameleon control.

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 20
Top 500 Contributor
55 Posts
Points 850
PKnopf replied on Sat, Sep 6 2008 12:15 PM

I am using 2008. I get this when visiting the page directly in the Themes folder and through the url rewrite made in siteurls.config

Server Error in '/ChubNelson' Application.

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: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).

Source Error:

Line 1:  
Line 2: Partial Class Themes_N2_FullColumn
Line 3: Inherits N2.Web.UI.ContentPage(Of BasePage)
Line 4:

Source File: C:\Users\Paul\Documents\Visual Studio 2008\Projects\ChubNelson\Themes\ChubNelson\N2\FullColumn.aspx.vb    Line: 2






Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

  • | Post Points: 20
Not Ranked
39 Posts
Points 470
CS Developers
Suggested by Dan Hounshell

I have seen that error before and it may have something to do with the 3.5 Framework SP1 and front page extensions (specifically the _vti_cnf folders).

Check this out and see if it helps:

http://dev.communityserver.com/forums/p/501551/630811.aspx#630811

 

  • | Post Points: 5
Page 1 of 1 (4 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com