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 Globals; using BusinessLayer.Controllers; public partial class BestKerens : BasePage { protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { HyperLink Hlink; HtmlInputHidden Hidden_id; Hidden_id = (HtmlInputHidden)e.Row.Cells[0].FindControl("Hidden1"); Hlink = (HyperLink)e.Row.Cells[0].FindControl("Link1"); Hlink.NavigateUrl += "?ID=" + Hidden_id.Value; Label labl = new Label(); labl = (Label)e.Row.Cells[1].FindControl("LabINBEST_AVG"); labl.Text = decimal.Parse(labl.Text).ToString("0"); labl.ForeColor = InbestColor(labl.Text); labl.Font.Bold = true; } } public void hlpButtAjax2_Load(object sender, EventArgs e) { ControllerArticle CtrlArticle = new ControllerArticle(); BusinessLayer.Entities.Article article = new BusinessLayer.Entities.Article(); article = CtrlArticle.Get((int)Globals.AJAXHelp.BestKerens_Inbest); ((Controls_HelpButtonAjax)sender).Text = "
" + article.Title + "

" + article.ShortText; } public void hlpButtAjax22_Load(object sender, EventArgs e) { ControllerArticle CtrlArticle = new ControllerArticle(); BusinessLayer.Entities.Article article = new BusinessLayer.Entities.Article(); article = CtrlArticle.Get((int)Globals.AJAXHelp.BestKerens_Proc); ((Controls_HelpButtonAjax)sender).Text = "
" + article.Title + "

" + article.ShortText; } protected void GridView2_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label labl = new Label(); labl = (Label)e.Row.Cells[1].FindControl("LabTotal"); labl.Text = decimal.Parse(labl.Text).ToString("0.00"); } } protected void Page_Load(object sender, EventArgs e) { this.CurrentPage = CurrentPageId.BestKranot; LabelUpdText.Text = GetGlobalResourceObject("Common", "Updatedate").ToString(); LabelUpdDate.Text = PageUpdatedDate; } }