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.BOObjects; using BusinessLayer.Controllers; using BusinessLayer.Entities; using Globals; public partial class BrokerProfile : BasePage { protected void Page_Load(object sender, EventArgs e) { Tit.Visible = false; this.CurrentPage = CurrentPageId.BrokerProfile; if (this.Request.QueryString["SelectProfileId"] != null) { int sProfileType = int.Parse(this.Request.QueryString["SelectProfileId"].ToString()); Tit.Visible = true; ControllerBrokers brok = new ControllerBrokers(); brok.GetProfiles(); DataSet res = brok.GetProfiles(); foreach (DataRow dr in res.Tables[0].Rows) { int NprofileTipe = int.Parse(dr["ProfileType"].ToString()); if (NprofileTipe == sProfileType) { Tit.Text = dr["Description"].ToString(); break; } } GridView1.DataSource = brok.GetBrokerProfile(sProfileType); GridView1.DataBind(); } } }