Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Including dll files in web part exports View modes: 
User avatar
Member
Member
piers-pulldigital - 11/3/2009 8:22:39 AM
   
Including dll files in web part exports
I've created a web part and I wanted to include some code from a dll. Is it possible to include the dll in the export/import process in Kentico or does iall the code need to be in the .ascx file?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/5/2009 4:41:38 AM
   
RE:Including dll files in web part exports
Hi,

You need to place your DLL file in one of the folders which are being exported. You need to follow this folder structure. You also need to ensure that the DLL is referenced in this folder correctly.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
piers-pulldigital - 11/5/2009 4:44:39 AM
   
RE:Including dll files in web part exports
How do I reference it and which folder within the Data folder do I put it in?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/9/2009 6:16:37 AM
   
RE:Including dll files in web part exports
Hi,

It depends on you into which folder you will place it, you just need to follow the structure I sent previously,

With the referencing the DLL I meant the function in Visual Studio whn you for example click on BIN folder with right button, you can use the Add reference dialog to add reference to other projects within the colution or to other DLL files.

Best Regards,
Juraj Ondrus