Store Objects in Web.config
-
Hi, Can we store objects such as Oledbconnection in web.config ? If we can do,then how can we do? Thanks... Regards...
-
Hi, Can we store objects such as Oledbconnection in web.config ? If we can do,then how can we do? Thanks... Regards...
atarikg wrote:
Can we store objects such as Oledbconnection in web.config ?
You can store the connection string in the config.
Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
atarikg wrote:
Can we store objects such as Oledbconnection in web.config ?
You can store the connection string in the config.
Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
so there is no way to store objects in web.config right ?
-
so there is no way to store objects in web.config right ?
atarikg wrote:
so there is no way to store objects in web.config right ?
You could serialise an object to XML, which you could then store in the config file. But it isn't designed for that. My advice is to store the connection string in the config file.
Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
Hi, Can we store objects such as Oledbconnection in web.config ? If we can do,then how can we do? Thanks... Regards...
Or U can use binary serialization and store it in another file.
Regards, Arun Kumar.A
-
Or U can use binary serialization and store it in another file.
Regards, Arun Kumar.A
thank you so much :)