|
-
February 24th, 2010, 11:55 AM
#1
Does this work the way I think? web.conif and .master pages.
I want to run a though I have by everyone to make sure it would work. I would test it in code but I will not be home till late tomorrow night. So here is the laydown I have a ASP.NET site using C# that will be making lots of calls to a DB. I don't want to have to write the connection string over and over so I was thinking about putting the connection string into the web.config file then in my .master page setting a public string ConnString in the Page_INT so that all my sub pages can just referance master.ConnString to make the connection. Will this work like I want or am I missing something? The hole point of doing this is to make connection and getting info from the DB easier and faster then writting out the code in everypage, which so far is about 50 pages.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|