Hi ,
below statements are for updating records in databse .If i update first record second record related to first record i also updating.
dropdown1 textbox1 tetbox1..-----firstrecord
dropdown2 textbox2 tetbox2..-----secondrecord
protected void update_Click(object sender, EventArgs e)
{
string Connection = System.Configuration.ConfigurationManager.ConnectionStrings["Conn"].ConnectionString;
SqlConnection cn = new SqlConnection(Connection);
cn.Open();
switch (Session["day"].ToString())
{
case "SUN":
tsweek = "Sunday";
tsdate = lbl_sun.Text;
break;
case "MON":
tsweek = "Monday";
tsdate = lbl_Mon.Text;
break;
case "TUE":
tsweek = "Tuesday";
...
Go to the complete details ...