registering namespace in console in vb.net
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
registering namespace in console in vb.net

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
drazic19
Guest





Posted: Thu Nov 03, 2005 5:51 pm    Post subject: registering namespace in console in vb.net Reply with quote

Hi,

I've been trying to implement a "create page from template" add-in. It was
initial in c# and i've converted it to vb but i can't seem to get the control
to register and run in the console, think its a namespace/registration
problem.

The add-in is a vb class file in my control directory and the head of this
file is as follows:

Imports System
Imports Microsoft.ContentManagement.Publishing
Imports Microsoft.ContentManagement.WebControls
Imports Microsoft.ContentManagement.WebControls.ConsoleControls

Namespace fromTemplate

Public Class NewFromTemplate
Inherits BaseAction

The following is how i've tried to register it in the console:

<%@ Register TagPrefix="frmTmp" Namespace="fromTemplate"
Assembly="projectname" %>

<frmTmp:newfromtemplate id="NewFromTemplate1" runat="server"
templatepath="/templates/template">
<a id=CreateFromTemplateAnchor
onclick="<%# Container.ActionJavascript %>;return false" href="#"
target=_self>
<%# Container.Text %>
</a>
</frmTmp:newfromtemplate>

Any help would be great thanks,

drazic19
Back to top
Stefan [MSFT]
Guest





Posted: Mon Nov 07, 2005 5:50 pm    Post subject: Re: registering namespace in console in vb.net Reply with quote

Hi Drazic,

first of all: why did you convert it to VB.NET?
If you have it in C#, just compile it as a separate C# project and bind the
DLL to your project.

In addition: VB.NET per default adds the project to the namespace. Please
verify the correct namespace using object browser.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"drazic19" <drazic19@discussions.microsoft.com> wrote in message
news:A1030938-ABD3-4281-B366-D485B452729E@microsoft.com...
Quote:
Hi,

I've been trying to implement a "create page from template" add-in. It was
initial in c# and i've converted it to vb but i can't seem to get the
control
to register and run in the console, think its a namespace/registration
problem.

The add-in is a vb class file in my control directory and the head of this
file is as follows:

Imports System
Imports Microsoft.ContentManagement.Publishing
Imports Microsoft.ContentManagement.WebControls
Imports Microsoft.ContentManagement.WebControls.ConsoleControls

Namespace fromTemplate

Public Class NewFromTemplate
Inherits BaseAction

The following is how i've tried to register it in the console:

%@ Register TagPrefix="frmTmp" Namespace="fromTemplate"
Assembly="projectname" %

frmTmp:newfromtemplate id="NewFromTemplate1" runat="server"
templatepath="/templates/template"
a id=CreateFromTemplateAnchor
onclick="<%# Container.ActionJavascript %>;return false" href="#"
target=_self
%# Container.Text %
/a
/frmTmp:newfromtemplate

Any help would be great thanks,

drazic19
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB