Complete Program To insert, update, show and delete in .Net using ADO
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 databaseinsertion { public partial class Form1 : Form { int myid; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { string constr = "Data Source=NOBEL-PC\\SQLEXPRESS;Initial Catalog=db_ecommerce;user id=rupak;password=rupak"; SqlConnection sqlcon = new SqlConnection(constr); SqlCommand scmd = new SqlCommand("productinsertion", sqlcon); scmd.CommandType = CommandType.StoredProcedure; scmd.Parameters.AddWithValue("@names", textBox1.Text); scmd.Parameters.AddWithValue("@description", richTextBox1.Text); try { ...