Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Procedure
1. Open visual studio
2. Create new website in c# language.
3. Create the database in sqlserver
4. Design the pay roll system form in aspx page.
5. Make the database connection to store the employees salary and personal
details
Form design
Coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
SqlConnection DBCon;
SqlDataAdapter DA;
String StrSql;
SqlCommand myComm;
DataSet DS = new DataSet();
namestr = name.Text;
deptstr = dept.SelectedItem.Text;
desgstr = desg.SelectedItem.Text;
pf.Text = Convert.ToString(pfint);
gross.Text = Convert.ToString(grossint);
net.Text = Convert.ToString(netint);
DBCon.Open();
// DA.Fill(DS, "ROLLID") ;
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
DBCon.Open();
DA = new SqlDataAdapter("Select * from Salarymas", DBCon);
DA.Fill(DS, "Salarymas");
GridView1.DataSource = DS;
GridView1.DataBind();
}
}