School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,392 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,581 people online right now. Registration is fast and FREE... Join Now!




Including Assembly References To Web App

 

Including Assembly References To Web App, C# .Net

fremgenc

18 Jun, 2009 - 09:07 AM
Post #1

D.I.C Head
**

Joined: 15 Nov, 2007
Posts: 119



Thanked: 3 times
My Contributions
Hello,

Big Picture:
I am trying to Automate a Visio Application and Macro from a web application.

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

User is offlineProfile CardPM
+Quote Post


woodjom

RE: Including Assembly References To Web App

22 Jun, 2009 - 07:59 AM
Post #2

D.I.C Regular
Group Icon

Joined: 8 May, 2008
Posts: 365



Thanked: 15 times
My Contributions
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
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 09:47PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month