Skip to main content
Participant
Feb 5, 2010 8:11 AM UTC
Question

Using .NET dll in DW 8

Hi to all,

how can I use a .NET dll in my DW 8 web pages?

And more: have I to create the dll coded object (as in a .net app: <ClassName> obj = new <ClassName>();) to use its methods? How?

Or I only "static" methods are available?

Many thanks in advance

Dino

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
Feb 8, 2010 10:03 AM UTC

Well I'm not familliar with DreamWeaver 8 but to use a NET DLL place it in the bin folder.

If you just want to use code in your own source code don't forget;

using yourNameSpace;

If oyu want to use a webcontrol from the librarie insert the following in the header of your pages:

<%@ Register Assembly="NameOfYourDLL" Namespace="NameSpaceOfYourDLL" TagPrefix="menu" %>

to insert a web control in your page use the tagprefix menu:

<menu:ControlName runat="server"etc. etc. />

Instead of writing the tagprefix in the header you can also declare it in the web.config like:

<controls>
                <add tagPrefix="menu" namespace="NameSpaceOfYourDLL" assembly="NameOFYourDLL"/>

other tagprefixes....
</controls>

That's it

Translate