QUOTE(fremgenc @ 18 Jun, 2009 - 11:07 AM)

Current Problem:
I do not know how to add an assembly reference to my C# asp page. I can use directives like so:
CODE
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.Reflection" %>
However when I try to Import the references I need to automate, I get errors (obviously, the assembly file isnt referenced)
CODE
<%@ Import Namespace="Microsoft.Office.Interop.Visio" %>
<%@ Import Namespace="Microsoft.Office.Core" %>
I could easily import assembly references in Visual Web Developer however I am stuck using Dreamweaver (Thats what my company has licensed)
Thank you
Your a former VB.Net developer arent you?
C# uses the keyword
c#
using
As such im sure that if you change all your imports to using keywords you will be good. Also, why are you not utilizing the codebehind file for the asp pages? The benefit with .Net is the ability to seperate presentation from the code layer while keeping them within the same proximity. It will keep your aspx presentation file alot cleaner and more to the design of the interface and keep all the code in a file that is closely tied to the aspx interface.
Also, to hell with that...down load the VWD express and have fun with it. I would use Dreamweaver for the design of the page itself but i would then load it into VWD to actually do the coding interaction. Back when it was just ASP and everything was script this and script that....i used DW to throw together a quick interface design i liked and then used vbscript to actually do all the parsing and further design information.
This post has been edited by woodjom: 22 Jun, 2009 - 08:03 AM