User Interface  <. aspx>
  -------------------

Code File:

using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient ;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection("Trusted_Connection=true;DataBase=Praveen_DataBase");
        SqlCommand cmd = new SqlCommand("Insert into Table1 values(@Name,@Address,@Course,@Roll)",con );
        SqlParameter obj1 = new SqlParameter("@Name", DbType.StringFixedLength);
        obj1.Value = TextBox1.Text;
        cmd.Parameters.Add (obj1);
        SqlParameter obj2 = new SqlParameter("@Address", DbType.StringFixedLength);
        obj2.Value = TextBox2.Text;
        cmd.Parameters.Add (obj2);
        SqlParameter obj3 = new SqlParameter("@Course", DbType.StringFixedLength);
        obj3.Value = TextBox3.Text;
        cmd.Parameters.Add (obj3);
        SqlParameter obj4 = new SqlParameter("@Roll", DbType.Int32.ToString());
        obj4.Value = TextBox4.Text;
        cmd.Parameters.Add (obj4);
        con.Open();
        cmd.ExecuteNonQuery();
        Label1.Text = "Record is Inserted";
        con.Close();

    }

}
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement
Corporate Services
  Web Design and development
  Web Promotion (SEO)
  Multimedia/CD Presentation
  Software development

  E.Commerce

Training@balujalabs

  Software Courses
  Hardware Courses
  Networking.Courses
  Mobile Repairing Courses
  UGC Degrees
Student Corner
 Programming & Projects
 Placement Papers
 Project Ideas
 Synopsis Ideas

  Franchise Section

 Administrator
Franchise Inquiry
 
 

INSERTING RECORDS IN SQL SERVER

 

 

 

 

 

 

 




1 INSERTING RECORDS IN SQL SERVER
2 DISPLAY RECORD OF DATABASE IN GRIDVIEW
3 UPDATE RECORD OF DATABASE
4 DELETE RECORD OF DATABASE
5 DROP DWON LIST BINDING FROM DATA BASE
6 RADIO BUTTON LIST BINDING FORM DATABASE
7 CHECK BOX LIST BINDING FROM DATA BASE
8 LIST BOX BINDING FORM DATA BASE
9 DROP DWON LIST
10 RADIO BUTTON LIST
11 CHECKBOX LIST
12 LIST BOX
13 EDITING DATA IN GRID
14 CRYSTAL REPORT
15 DISPLAYING DATA OF XML FILE
16 INSERTING RECORD IN XML FILE
17 LOGIN PAGE
18 REPEATER
19 DATA LIST
20 DATALIST CONTROL 1
21 DETAILS VIEW
22 FORM VIEW

 


     
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement