public void sa(GridView gv1) { int c1 = 0; int cv1 = 0; int ans; foreach (GridViewRow row in gv1.Rows) { cv1 = System.Convert.ToInt32(row.Cells[4].Text); c1 += currentValue1; } ans = c1; Random RandomClass = new Random(); int RandomNumber = RandomClass.Next(1, ans); Response.Write(RandomNumber); foreach (GridViewRow r in gv1.Rows) { gv1.FindControl(ans.ToString()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)