Global.ASAX using Statements?

  • Thread starter Thread starter xenophon
  • Start date Start date
X

xenophon

I tried to put "using System.IO;" in my global.asax and Visual Studio
2005 would not let me compile. Why?

Thanks.
 
Juan said:
"using" is code-behind syntax.

global.asax doesn't use code-behind any more.

Try using
<%@ Import Namespace="System.IO" %>

Thank goodness that they sill give you intellisense after you import
your namespace for the Global.asax
 
re:
Thank goodness that they sill give you intellisense
after you import your namespace for the Global.asax

Pretty cool, huh ?

;-)



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"using" is code-behind syntax.

global.asax doesn't use code-behind any more.

Try using
<%@ Import Namespace="System.IO" %>

Thank goodness that they sill give you intellisense after you import
your namespace for the Global.asax
 

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