Thursday, November 25, 2010

How to create shortcut for namespaces in your view files for ASP?

You can import namespaces at the beginning of the page and reference them directly.

<%@ Import Namespace="myapp.Controllers" %>

If you have a Product controller in myapp, you can reference this directly without writing myapp.Controllers.Product.

No comments:

Post a Comment

Hey!
Let me know what you think?