| 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
|