CMSPageRevert component
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > CMSPageRevert component




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    CMSPageRevert component  
javergondim@hotmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 12:29 AM

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.AuthoringReedi
tSaveAction'
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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register