Stefan [MSFT]
Guest
|
Posted:
Mon Nov 07, 2005 5:50 pm Post subject:
Re: registering namespace in console in vb.net |
|
|
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 |
|
|