Using IDBConnection how to populate DataGrid in ASP.NET

K

karunakar

Hi all

Iam trying to connect the SQL & sybase
These dabases need to connect the Same Code
I have littile bit idea of this But iam not able to populate the Datagrid
Using
"IDBConnection" and "IDBDataadapter"
(Connection string is diffrent)
Diffrent database but same code need to excute this i need

Thank u
Venu
 
R

ryan.mclean

Hi Venu, why not have the function the creates the datagrid accept an
IDBConnection object as a parameter? That way you could call the same
function regardless of what type of connection object you are using.
Hope that helps. Have a great day!
Ryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top