views:

109

answers:

3
A: 

to call a dll from your program you need to include the System.Runtime.InteropServices classes

try:

using System.Runtime.InteropServices 
[DllImport("name.dll")]
private static extern int FunctionNameInDll();
JustSmith
+2  A: 

I'm not sure if this will work as I don't have your assembly, but you could try with or without the TagPrefix:

<%@ Register Assembly="GenerateExcel" Namespace="Xander.Utilities" TagPrefix="Util" %>
Noah
I'm pretty sure that should do it. Would have been my answer had you not beaten me to the punch! +1
Matt Ball
It's not working, it says it cannot find.
rlb.usa
You might need to register the assembly in your Web.config file, or you could always add a code behind page...
Noah
I see that the DLL shows up in your bin directory. Did you add the DLL as a reference?
Matt Ball
A: 

The answer was to do an <%@ Import Namespace="Xander.Utilities" %> and then put the DLL in the root's bin folder.

rlb.usa
Which file did you put that line into?
Matt Ball
The ASPX page; for this small project there were no codebehinds.
rlb.usa