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 BrokerProfiles : BasePage { protected void Page_Load(object sender, EventArgs e) { this.CurrentPage = CurrentPageId.BrokerProfile; Panel pan_Description = new Panel(); pan_Description.Attributes.Add("id", "Description1"); Label text_Description = new Label(); text_Description.Text = (string)this.GetLocalResourceObject("Description1"); pan_Description.Controls.Add(text_Description); pnSection1.Controls.Add(pan_Description); } protected void GridView2_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label lblFee = (Label)e.Row.Cells[0].FindControl("LablTotalFee"); decimal fee = System.Math.Floor(Convert.ToDecimal(lblFee.Text)); if (fee >= 0) lblFee.Text = fee.ToString("0"); else lblFee.Text = fee.ToString("0"); } } protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { HtmlInputHidden obj = (HtmlInputHidden)e.Row.Cells[0].FindControl("Hidden1"); Controls_TitleControlLink tclink; tclink = (Controls_TitleControlLink)e.Row.Cells[0].FindControl("tclTitleProfile"); tclink.nURL = "~/BrokerProfile.aspx?SelectProfileId=" + obj.Value; } } protected void LinkButton1_Click(object sender, EventArgs e) { if (((LinkButton)sender).Text != "") { HtmlInputHidden obj = (HtmlInputHidden)((((Control)((LinkButton)sender).Parent).Parent).Parent.Parent.Parent.FindControl("Hidden1")); Page.Session.Add("ToBroker_selSupplier", ((LinkButton)sender).Text); Page.Session.Add("ToBroker_selProfileType", obj.Value); Go("Broker.aspx"); } } public void hlpButtAjax_Load(object sender, EventArgs e) { ControllerArticle CtrlArticle = new ControllerArticle(); BusinessLayer.Entities.Article article = new BusinessLayer.Entities.Article(); article = CtrlArticle.Get((int)Globals.AJAXHelp.BrokerProfiles_Cost); ((Controls_HelpButtonAjax)sender).Text = "
" + article.Title + "

" + article.ShortText; } }