Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Using .NET dll in DW 8

New Here ,
Feb 05, 2010 Feb 05, 2010

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

TOPICS
Server side applications
358
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 08, 2010 Feb 08, 2010
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines