Solved

Visual Studio Web Express 2012 Insert Into Database From Textbox

Posted on 2013-05-16
3
970 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

685 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