Imports question

  • Thread starter Thread starter Juan T. Llibre
  • Start date Start date
J

Juan T. Llibre

At the very top of your .vb source file


Imports Microsoft.VisualBasic
for example.

If you're using C#, use the "using"
keyword at the top of your .cs source file :

using System;
for example.





Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
Where do I put me imports statement in VS.net. I am OK in handcode asp.net
page. I get sqiggley line everywhere when I try to put at the top of the
HTML is VS.
 
Where do I put me imports statement in VS.net. I am OK in handcode
asp.net
page. I get sqiggley line everywhere when I try to put at the top of the
HTML is VS.

If you want to do it in your .aspx (not the codebehind), you have to use a
directive at the top of the page

<%@ Import Namespace="my.namespace" %>

for example...
 

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