GIF89;a GIF89;a using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using BusinessLayer.Controllers; using Globals; public partial class Managers : BasePage { protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label ll; HtmlInputCheckBox ck; ll = (Label)e.Row.Cells[0].FindControl("LabBuff1"); ck = (HtmlInputCheckBox)e.Row.Cells[0].FindControl("Checkbox3"); ck.Value = ll.Text; ck.Attributes.Add("onclick", "javascript:Checkbox1_onclick(this,'" + HiddenField1.ClientID + "')"); string checkval = HiddenField1.Value; string[] archeck = checkval.Split(','); foreach (string i in archeck) { if (i != "") { if (i == ck.Value) { ck.Checked = true; } } } Label labl11; labl11 = (Label)e.Row.Cells[1].FindControl("labl1"); if (labl11.Text == "") { labl11.Text = "-"; } else { labl11.Text = decimal.Parse(labl11.Text).ToString("0"); labl11.Font.Bold = true; labl11.ForeColor = InbestColor(labl11.Text); } labl11 = (Label)e.Row.Cells[2].FindControl("labl5"); if (labl11.Text == "") { labl11.Text = "-"; } else { labl11.Text = decimal.Parse(labl11.Text).ToString("0"); labl11.Font.Bold = true; labl11.ForeColor = InbestColor(labl11.Text); } labl11 = (Label)e.Row.Cells[2].FindControl("labl2"); if (labl11.Text == "") { labl11.Text = "-"; } else { labl11.Text = decimal.Parse(labl11.Text).ToString("0"); labl11.Font.Bold = true; labl11.ForeColor = InbestColor(labl11.Text); } labl11 = (Label)e.Row.Cells[3].FindControl("labl3"); if (labl11.Text == "") { labl11.Text = "-"; } else { labl11.Text = decimal.Parse(labl11.Text).ToString("0"); labl11.Font.Bold = true; labl11.ForeColor = InbestColor(labl11.Text); } } } protected void LinkButton1_Click(object sender, EventArgs e) { if (((LinkButton)sender).Text != "") { Page.Session.Add("ToManager_ManagerName", ((LinkButton)sender).Text); if (Page.Session["ToManager_ManagerName"] != null) Go("Manager.aspx"); } } protected void Page_Load(object sender, EventArgs e) { this.CurrentPage = CurrentPageId.Managers; Button2.OnClientClick = "if(getelementbyid('" + HiddenField1.ClientID + "').value == '') {alert('" + Resources.Common.LID_MESSAGE + "'); return false;} return true; "; LabelUpdText.Text = GetGlobalResourceObject("Common", "Updatedate").ToString(); LabelUpdDate.Text = PageUpdatedDate; } public void hlpButtAjax1_Load(object sender, EventArgs e) { ControllerArticle CtrlArticle = new ControllerArticle(); BusinessLayer.Entities.Article article = new BusinessLayer.Entities.Article(); article = CtrlArticle.Get((int)Globals.AJAXHelp.Managers_AvarageMark); ((Controls_HelpButtonAjax)sender).Text = "