The specific config element you're interested in is system.web.webPages.razor/pages/namespaces. It's a case of just creating an entry for each of your commonly used namespaces and then you don't need to worry about adding @using's or fully qualified class names in your views to resolve commonly used types.
...If you're using the WebForms (ASPX) view engine then the equivalent place to add your global usings is in the same Web.config but within the system.web/pages/namespaces element....
Handy tip, thanks..
ReplyDeleteFine information, many thanks to the author. Hire C# Developers from a company who has systematic and transparent project management in place. They should follow a step-by-step development process with established milestones.
ReplyDeleteNice blog you are having..Thanks to share.Kamalam Infotech pvt.ltd. offers a full range of web design and development services to ensure that your business benefits from enterprise IT.
ReplyDeleteweb developer Madurai
I really like this information which you shared regarding ASP.NET development. I am always eager to see something new from you.
ReplyDelete