How to import namesapce with non-codebehind page?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
I can't import some namespace with non-codebehind page..
for example.

<%@ Import Namespace="System.ServiceProcess"%>

In code-behind,we have to reference System.ServiceProcess.dll manually.
but how can we import such kind of namespace in .net framework?

Thanks a lot

Clare Hsiao


Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: File or assembly name System.ServiceProcess, or one of
its dependencies, was not found.

Source Error:

Line 1: <%@ Assembly Name="System.ServiceProcess"%>
Line 2: <%@ Import Namespace="System.Web.Mail"%>
Line 3: <%@ Import Namespace="System.Text"%>



(e-mail address removed)
 

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