Пример #1
0
 public void ViewChartRound()
 {
     ChartRoundBSO chartRoundBSO = new ChartRoundBSO();
     DataTable table = chartRoundBSO.MixChartRound();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(GridView1, table);
 }
Пример #2
0
 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     int mID = Convert.ToInt32(e.CommandArgument.ToString().Trim());
     string cName = e.CommandName.ToLower().Trim();
     switch (cName)
     {
         case "edit":
             Response.Redirect("~/Admin/editchartRound/" + mID + "/Default.aspx");
             break;
         case "delete":
             ChartRoundBSO chartRoundBSO = new ChartRoundBSO();
             chartRoundBSO.DeleteChartRound(mID);
             ViewChartRound();
             break;
     }
 }