protected void Button1_Click(object sender, EventArgs e) { //List<object> SelectedDebts = grid.GetSelectedFieldValues(new string[] { "FISNO", "TL_BORC" }); //foreach (object debts in SelectedDebts) //{ // IList items = debts as IList; // if (items == null) return; // SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["CarringtonWebConnectionString1"].ConnectionString); // con.Open(); // SqlCommand cmd = new SqlCommand("update ACIKHESAP set ODEME_DURUMU=1, ODENEN_TUTAR=" + items[1].ToString() + " where ID=" + items[0].ToString(), con); // cmd.ExecuteNonQuery(); // Labeltesekkurler.Visible = true; //} //List<object> SelectedDebts = grid.GetSelectedFieldValues(new string[] { "FISNO", "TL_BORC" }); Decimal selectedTUTAR = 0; foreach (object value in ASPxGridView2.GetSelectedFieldValues("TL_BORC")) { { selectedTUTAR += Convert.ToDecimal(value); } } Global.TUTAR = null; Global.TUTAR = selectedTUTAR.ToString(); Server.Transfer("payment.aspx"); }