SQL Data Source data bound control
always used with 2 –Tire Architecture
1. Using of SQL data source with Grid
view
SQL data source: -
The SQL data source control
enables you to use a Web server control to access data that is located in a
relational database. This can include Microsoft SQL Server and Oracle
databases, as well as OLE DB and ODBC data sources. You can use the SQL data
source control with data-bound controls such as the grid view, Form view, and Details view controls to display and manipulate data on an ASP.NET
Web page, using little or no code.
Connecting the SQL data source with Database
1) Place the grid view control
and SQL data source controls on the web page at design time.
2) Choose SQL data source à Task list à
Configure data source.
3) Here
we choose the data connection used
to connect to the database.
4) In
this step we choose the specify columns
from tables or Specify the custom SQL
statements or Stored procedure.
5) 1st
we choose name of the table and select *
for all columns.
Connecting the SQL database with
Grid view control
Grid
view à Task list à
Data source à SQL data source 1.
No comments:
Post a Comment