ASP.NET and Access databases
I have taken the tutorials within vbworld regarding .NET and I love it so far. I would like to start using it today instead of the ASP I am currently using but I don't know how to use databases yet.
How would I write to a database (Access or SQL)? I know how to gather the data on the page but I don't know how to move it into a database. rst.Open....?
I never got into VB enough to get into databases either so sample code would be greatly appreciated.
Thank you.
Your old thread re Access DBs on a Web site
Cander
Wonder if you can help
I browsed the forums to try to solve my problem and came across this thread which you contributed to which I thought might help me.
I have been programming in Vb for 10 years but VB.NET sometimes leaves me bewildered.
I have a web site I have developed using an Access 2002 DB. It all works fine if I hard code the actual database location from my E:Drive as below
Public dbcConnection As String = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = e:\irean\ireanweb\ireantest.MDB;"
as you can see the project and all the associated VB files are in e:\irean\ireanweb and that where the DB is.
I am preparing to upload it my clients Web Server and am a little unsure of where my DB is going to sit - I assume with all the HTML and ASPX files in my clients web site.
I changed the connection string as per your example - dont understand the system.mapppath ?? but now its looking in \inetpub\wwwroot for the DB
Is there some advice you can give me to make this uploading as painless as possible or do you know of any resources I could scoure to help me
thanks
BH