Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1004
  • Last Modified:

Visual Studio Web Express 2012 Insert Into Database From Textbox

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
laskydiver
Asked:
laskydiver
  • 2
2 Solutions
 
David Johnson, CD, MVPOwnerCommented:
Otherwise known as CRUD (Create/Replace/Update/Delete)

http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx
0
 
laskydiverAuthor Commented:
Thanks but wanting to use standard textbox not gridview.
0
 
David Johnson, CD, MVPOwnerCommented:
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now