if (e.CommandName == "btn_update") { int id1 = Convert.ToInt32(e.CommandArgument); Session["naziv"] = gv_artikli.Rows[id1].Cells[1].Text; Session["proizvodac"] = gv_artikli.Rows[id1].Cells[2].Text; Session["vrsta"] = gv_artikli.Rows[id1].Cells[3].Text; Session["oblik"] = gv_artikli.Rows[id1].Cells[4].Text; Session["cijena"] = float.Parse(gv_artikli.Rows[id1].Cells[5].Text); Session["opis"] = gv_artikli.Rows[id1].Cells[6].Text; Session["participacija"] = gv_artikli.Rows[id1].Cells[7].Text; PostaviTextBox(); } public void PostaviTextBox() { txt_id.Text = Session["ArtikalID"].ToString(); txt_naziv.Text = Session["naziv"].ToString(); txt_cijena.Text = Session["cijena"].ToString(); txt_oblik.Text = Session["oblik"].ToString(); txt_opis.Text = Session["opis"].ToString(); dp_proizv.SelectedItem.Text = Session["proizvodac"].ToString(); dp_vrsta.SelectedItem.Text = Session["vrsta"].ToString(); dp_partc.SelectedItem.Text = Session["participacija"].ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)