|
-
Sep 22nd, 2008, 01:49 AM
#1
Thread Starter
New Member
[2008] Sending form data and more
I have installed Visual Studio 2008 recently and planned to use it for a project for school, I previously used Visual Studio 2003 but that was 2 years ago, I really have no idea about much in it.. anywhoo
I have to do a website, and its auto parts, I'm trying to do a reservation page at them moment, and I want the form data to send to the database
normally I know with 03 my code would look something like
Code:
Dim M As DataRow = Datasetname.TableName.NewRow
M("CustomerName") = txtName.Text
M("Email") = txtEmail.Text
M("CustomerNo") = txtPhone.Text
M("PartNo") = txtPart.Text
M("Date") = lblDate.Text
M("HeldUntil") = lblheld.Text
Dataset.Table.Rows.Add(workrow)
DataAdapter.Update(Dataset)
The thing is I don't know if I'm connecting it properly, because in '03 after I made the connection I could have just right-clicked the connection and generate the dataset. The controls here are different, theres an AccessDataSource which I assume would be my data adapter, but I don't know how to generate the dataset from it or, I don't know if I'm correct in my wording of this, associating the dataset with that connection?
I have no idea how to work it with '08 can somebody please help me?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|