.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Name save in a database

Posted By: Manish     Posted Date: July 17, 2013    Points:5   Category :C#
Sorry Sir,

This coding is not sufficiant for me. 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.SqlClient;

namespace WindowsFormsApplication4
public partial class Form1 : Form

SqlConnection con = new SqlConnection("Data Source=USER-PC;Initial Catalog=project1;Integrated Security=True");

public Form1()

private void button1_Click(object sender, EventArgs e)



No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend