Quantcast
Viewing all articles
Browse latest Browse all 3509

Save name in database through sqlconnection

Dear All, I want created a Windows Application Not a Web Application. which is i deploy in my system.When i open the software then enter a name and age value in the text box,now i click on the save button then it show a message "value save in the databse".and the click on the delete button,show a message "delete value in the database". Now describe whole the program which is i created :- 1.Firstly i open a c# windows apllication form then creat a two textboxes and two button Save and Delete. 2.Now i am create a database, Right click on solution Explorer->Add->New Item-> Service Based select then cancel. 3.Now create a table, name "userid" in server exlporer. 4.Table have two field username and age now i fill the table (some database value like my name and age) through"show table". 5.Now i added a Reference SqlServerCe and add a namespace then create a Sql conncection. 6.If This coding and database creation is right then Please tell me other coding of that program Step by step. 7.Find the attached design file. form1.cs coding file:- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlServerCe; namespace WindowsFormsApplication4 { public partial class Form1 : Form { SqlConnection con = new SqlConnection("Data Source=USER-PC;Initial Catalog=project1;Integrated Security=True"); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { } } }

Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>