that requires an active and open connection to data source. It fetches the data form the database as if it were coming from a stream.
Disconnected Model Architecture of ADO.Net
3. Create a web application to demonstrate the connection oriented and
disconnected architecture of ADO .net
ADO .net supports a verity of developments needs including the front-end data base clients also this a set of
classes that expose data access services for .NET Framework programmers.
ADO.net and Sql server are two different platforms which need to be connect retrieve the data table have
been created in Sql. Connect to any SQL database supported by ADO.NET, such as Microsoft SQL Server. Two
type of architecture are Connection Orient Architecture and Disconnected Architecture.
4. Connected Architecture
The connected architecture works on forward only and read-only. the data base is directly connected to the
application. In this state the open application needs to be closed for another application to run.
//connecting to SQL server. with connection Architect
5. Disconnected Architecture
The disconnected architect used as
it given benefits and don’t have to
close the connect if required to use
another application.
SqlConnection con = new
SqlConnection(@"Data Source=PC-8060-
0036SQLEXPRESS;Initial
Catalog=StudentInformationSys;Integrated
Security=True");
SqlDataAdapter adap = new
SqlDataAdapter("select * from
[STUDENTDB]", con);
DataTable dt = new DataTable();
adap.Fill(dt);
//GridView1.DataSource = dt;
GridView1.DataBind();