Assembly references?

  • Thread starter Thread starter Roy Chastain
  • Start date Start date
R

Roy Chastain

How do I put a reference to an assembly in to a C# aspx or global.asax page. I am trying to import a name space, but the name
space is not found because of the lack of the reference to the assembly that defines it.

Thanks
 
the assembly needs to be registered in GAC or placed in the bin directory of
your application.

Roy Chastain said:
How do I put a reference to an assembly in to a C# aspx or global.asax
page. I am trying to import a name space, but the name
 
Hi Roy,

As for how to reference an assembly or imports namespace in aspx or
global.asax file, you can use the
@Assembly and @Import directive , here are some reference of them in MSDN:

#@ Assembly
http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconAssembly.asp?fram
e=true

#@ Import
http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconImport.asp?frame=
true

Hope these help.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Thanks, I have found the @import, but I had missed the @assembly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top