0

i have problem in database connectivity in my project........in asp.net...........

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by sajalrastogi
0

There are two steps that must follow for database connectivity in asp.

1. Create a connection string to open a connection.
<asp:SQLDataSource id="sqldatasource1"
connection string="Server=servername; databasename=name of database;
username=name of the user; password= password of th e user" selectcommand="select * from xyz " >


2. Pass the Sqldatasource ID (sqldatasource1) into the Control which you want to bound to database.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.