How to using usings/imports in global.asax

When you use the global.asax the way it comes out of the box (no code-behind) – you may get frustrated that you can’t have usings (import in VB.NET) statements to save yourself from having to type out the fully-qualified namespace of a class. Well, here’s how you can have a using statement in your global.asax (if you needed System.IO, for example):
<%@ Import Namespace="System.IO" %>
Posted in ASP.NET, Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Enter your email address to follow this blog and receive notifications of new posts by email.

Join 9 other followers

%d bloggers like this: