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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.