DataSet dssa = (DataSet)Session["dt"]; string sr = dssa.Tables[0].Columns[2].ColumnName; Response.Write(sr); object sumOfSalary = null; sumOfSalary = dssa.Tables[0].Compute("Sum(sr)" , " ");
sumOfSalary = dssa.Tables[0].Compute("Sum(" + sr +")" , " ");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)