That subject may not do this questions justice.I am trying to limit what I write on all my .cshtml pages.For example, on everypage I am @using myDLL and "connecting" to sql server.I write that out like
myDLL dll = new myDLL();
dll.ConnectionString = "blablabla";
How can I remove the need to do that to every single page?
I think I can create a web.config and do some funky stuff... can someone show examples?
View Complete Post