Code that connects to the database, where web config holds the
contention string, and ObjClass contains the connect and data set
objects.
Web.config
<connectionStrings>
<add name="ObjDataConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ObjectData1.mdf;Integrated
Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
Objclass

In the above, a connection string constructed with a name space "
System.Web.Configuration;" , then a class SqlDataAdapter from
System.Data.SqlClient namespace, processes an instruction to get the
data from a table, and finally a "DataSet class from System.Data,
holds the data ( that can be edited, in Contrast to to DataReader)