T
Ty
I'm using Web Developer in VS 2008.
I have a MS Access DB that I want access the data to place into labels
and fill dropdown list boxes.
The problem is that I am use to VB 6 and ADO where I could just code
it without much fuss.
Now the issues I have are....
1. Where do I place the code? In the aspx page as VBscript or in the
apsx.vb page as code?
I looked on the web and I find that the recordset object has been
replaced with the dataset. There is also a dataadapter needed to fill
the dataset. None of it makes much sense to me. I added a dataset to
my site by add new item...dataset and used the wizard to connect to
the database and the query builder to fill data from the table but how
do i use this in the aspx pages? and Do I have to add a new one for
each table I need to access for different pages?
Most of the examples I have seen use a SQL database and I cannot see
how to change it to my use.
Any help or a simple example of creating a connection, command and
getting the data into variables would be greatly appreciated.
I have been able to use a gridview with accessdatasource without issue
but the data I need to input now is into controls that do not have a
data bound property such as a label and textbox.
Thanks,
Ty
I have a MS Access DB that I want access the data to place into labels
and fill dropdown list boxes.
The problem is that I am use to VB 6 and ADO where I could just code
it without much fuss.
Now the issues I have are....
1. Where do I place the code? In the aspx page as VBscript or in the
apsx.vb page as code?
I looked on the web and I find that the recordset object has been
replaced with the dataset. There is also a dataadapter needed to fill
the dataset. None of it makes much sense to me. I added a dataset to
my site by add new item...dataset and used the wizard to connect to
the database and the query builder to fill data from the table but how
do i use this in the aspx pages? and Do I have to add a new one for
each table I need to access for different pages?
Most of the examples I have seen use a SQL database and I cannot see
how to change it to my use.
Any help or a simple example of creating a connection, command and
getting the data into variables would be greatly appreciated.
I have been able to use a gridview with accessdatasource without issue
but the data I need to input now is into controls that do not have a
data bound property such as a label and textbox.
Thanks,
Ty