Discussion Locked

web Application

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hy,

I need to know how can I connect my web form to an access database.
Is it by edditing the web.config.
or by creating an ordinar:
OledConnection
OledbDataadapter
and a Dataset??

I tried these methode but got errors in the dataadapter.fill.

Please it's urgent tell me what to do.

1 reply

by amoljpatil

dim con as sqlclient.sqlconnection("Data Source=server;Initial Catalog=catalog;Integrated Security=True")
dim cmd as sqlclient.sqlcommand("select * from table1",con)
dim ds as dataset
cmd.fill(ds,"table1")
FGrid.datasource=ds

This discussion is closed to new replies.