MPeccorini
MIS
Hi fellows,
I'm starting to develop web based applications with ASP.NET, I have several pages and, as each page has it's own OleDbConnection control, the connection string is specified in every page.
I would like to allow the user to set the database connection string to use in a configuration page. I tried putting the connection string in a file and reading on application startup. It worked fairly well, however some databinding properties are no longer displayed correctly due to the connection string not being set in the object as string but as a function execution.
What is the best way to do what I want?
Thanks a lot,
Mauricio Peccorini
I'm starting to develop web based applications with ASP.NET, I have several pages and, as each page has it's own OleDbConnection control, the connection string is specified in every page.
I would like to allow the user to set the database connection string to use in a configuration page. I tried putting the connection string in a file and reading on application startup. It worked fairly well, however some databinding properties are no longer displayed correctly due to the connection string not being set in the object as string but as a function execution.
What is the best way to do what I want?
Thanks a lot,
Mauricio Peccorini