Microsoft Content Management Server - CMSPageRevert component

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2004 > CMSPageRevert component





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CMSPageRevert component
javergondim@hotmail.com

2004-06-28, 7:29 pm

Hi Stefan

The page revert component is really usefull!
We have a CMS Project based on VB. So, I decided to convert the
PageRevert.aspx to a VB version. Next I have created a Class Library
outside my CMS project for the namespace Stefan.CMSPageRevert and to
finish I have configured the console.aspx according to
AddToConsole.txt and added the
Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert on the /bin of
the CMS project

Apparently it seems to be everything ok, however I have facing
problems to build the solution since the PageRevert.vb is disturbing
the console.aspx codebehind showing what seems to be a big list of
conflicts:

The errors are like:
Type 'Microsoft.ContentManagement.WebControls.AuthoringModeContainer'
is not defined;
Type 'Microsoft.ContentManagement.WebControls.ConsoleControls.AuthoringReeditSaveAction'
is not defined
.... and it keeps going by 102 build errors all from console code
behind

This is how it starts my PageRevert.aspx.vb:
---------------------------------------------------------------------
Imports System
Imports System.Web
Imports System.Web.UI
Imports Microsoft.ContentManagement.Publishing
Imports System.Web.UI.WebControls
Imports System.Data
Imports CMSRevertLibrary.Stefan.CMSPageRevert

Namespace Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevertASPX
Public Class PageRevertPage
Inherits System.Web.UI.Page
Protected postingGUIDbox As TextBox
Protected pageRevisionList As DataGrid
Protected currentVersion As DataGrid
Protected successLabel As Label
Protected failureLabel As Label
Protected curVerLabel As Label
Protected availRevLabel As Label
Protected WithEvents postingGUIDEntryPlaceholder As
System.Web.UI.WebControls.PlaceHolder

Private cmsContext As CmsHttpContext
Private currentPostingVersion As Posting = Nothing


Protected Overrides Sub OnInit(ByVal e As EventArgs)
InitializeComponent()
MyBase.OnInit(e)
End Sub


Private Sub Page_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
Try
cmsContext = CmsHttpContext.Current
currentPostingVersion = cmsContext.Posting

If currentPostingVersion Is Nothing Then
Dim postingGUID As String

(...)
-----------------------------------------------------------------------

I know I am doing something stupid somewhere but I am not able to find
what the problem is. Could you help me to find out?

Thank you for any helps you can provide.

Javer
javergondim@hotmail.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com