Solved

Visual Studio Web Express 2012 Insert Into Database From Textbox

Posted on 2013-05-16
3
962 Views
Last Modified: 2013-06-27
I'm using Visual Studio Web Express and I would like to insert some values from a couple of text boxes to a database. Currently I able to read the table to the gridview without issue. It seems to work well. However I cannot get insert to work so obviously I don't know what I'm doing.  I have two textboxes and a submit box. I'm sure I need to use SqlDataSource but not sure how.

Txtbox1
Txtbox2
Submit_Button

Database Name ( DB1)
Table Name (Name)
Field Name (FN)
0
Comment
Question by:laskydiver
  • 2
3 Comments
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 39173871
Otherwise known as CRUD (Create/Replace/Update/Delete)

http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx
0
 

Author Comment

by:laskydiver
ID: 39173900
Thanks but wanting to use standard textbox not gridview.
0
 
LVL 80

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 500 total points
ID: 39174070
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question