protected void ShowMenu() { Guid subId = SessionHelper.GetSession(SessionKey.SubDomain) == string.Empty ? Guid.Empty : new Guid(SessionHelper.GetSession(SessionKey.SubDomain)); if (HttpContext.Current.User.IsInRole(GroupAdmin)) { if (!(subId == Guid.Empty)) { if (subId == new Guid("ffffffff-ffff-ffff-ffff-ffffffffffff")) { RadPanelBar1.FindItemByValue("bantin").Visible = true; } RadPanelBar1.FindItemByValue("administrator").Visible = false; } else { RadPanelBar1.FindItemByValue("bantin").Visible = true; } } else { RadPanelBar1.FindItemByValue("admin").Visible = false; RadPanelBar1.FindItemByValue("administrator").Visible = false; RadPanelBar1.FindItemByValue("thongke").Visible = false; } }
void cargarServicio() { List<capascccmex.metadatos.servicio> oCamposCat = new List<capascccmex.metadatos.servicio>(); capascccmex.biz.servicio obj = new capascccmex.biz.servicio(); Dictionary<string, string> dcat = new Dictionary<string, string>(); RadComboBox cmbcat = (RadComboBox)RadPanelBar1.FindItemByValue("info").FindControl("cmbservicio"); try { oCamposCat = obj.GetBizServicio(null, 0, 0); //---------------------------------------- foreach (var item in oCamposCat) { dcat.Add((string)item.IdServicio, (string)item.Servicio); } cmbcat.DataSource = dcat; cmbcat.DataTextField = "Value"; cmbcat.DataValueField = "Key"; cmbcat.DataBind(); //---------------------------------------- } catch (SqlException ex) { windowManager1.RadAlert("Error: " + ex.Message.ToString(), 300, 100, "Cargando información de Servicio", null); } }
protected void but2_Click(object sender, EventArgs e) { RadButton addbox = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("addbox"); if (addbox.CommandName == "addb") { string id = Request.QueryString["id"].ToString(); int iid = int.Parse(id); string date = System.DateTime.Now.Date.ToString(); string addtobox = "INSERT INTO Box (MyID, SID, FollowDate, FollowStatus) VALUES (" + Session["UserId"] + "," + iid + "," + "'" + date + "'" + ", 1)"; profile.DataBase(addtobox); Response.Redirect("profile.aspx?Id=" + id); } if (addbox.CommandName == "rfb") { string id = Request.QueryString["id"].ToString(); int iid = int.Parse(id); string remove = @" DELETE FROM Box WHERE (MyID = " + Session["UserID"] + ") AND (SID = " + iid + ")"; profile.DataBase(remove); Response.Redirect("profile.aspx?Id=" + id); } if (addbox.CommandName == "cpp") { RadWindow window1 = new RadWindow(); window1.NavigateUrl = "profilec/pro-pic-change.aspx"; window1.Modal = true; window1.VisibleOnPageLoad = true; window1.Width = 310; window1.Height = 560; RadAjaxPanel1.Controls.Add(window1); } }
protected void friendreq_Click(object sender, EventArgs e) { RadButton editprofile = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("friendreq"); string id = Request.QueryString["id"].ToString(); string myd = Session["UserId"].ToString(); if (editprofile.CommandName == "ep") { Response.Redirect("edit/edit-profile.aspx"); } if (editprofile.CommandName == "befriend") { string AcceptFriendQuery = "Update Friends set FriendStatus=1 where MyId=" + id + " AND FriendId=" + myd + ""; profile.DataBase(AcceptFriendQuery); Response.Redirect("profile.aspx?Id=" + id); } if (editprofile.CommandName == "rempen") { string delereq = @"DELETE FROM Friends WHERE (MyID = " + myd + ") AND (FriendID = " + id + ")"; profile.DataBase(delereq); Response.Redirect("profile.aspx?Id=" + id); } if (editprofile.CommandName == "ask") { string chkfriendRequest = @"SELECT * FROM Friends WHERE (MyId=" + Session["UserId"].ToString() + " and FriendId=" + id + ") OR (MyId=" + id + " and FriendId=" + Session["UserId"].ToString() + ")"; DataTable dt1 = new DataTable(); dt1 = profile.ReturnDT(chkfriendRequest); if (dt1.Rows.Count > 0) { if (dt1.Rows[0]["FriendStatus"].ToString() == "0") { editprofile.Text = "Connection Request Pending"; } if (dt1.Rows[0]["FriendStatus"].ToString() == "2") { editprofile.Text = "Connection Request deny"; } } else { string friendRequest = "Insert INTO Friends (MyId,FriendId) VALUES(" + Session["UserId"].ToString() + "," + id + ")"; profile.DataBase(friendRequest); editprofile.Text = "Connection Request Sent"; editprofile.Enabled = false; } } if (editprofile.CommandName == "unfriend") { string unfriendhim = @"DELETE FROM Friends WHERE (FriendID = " + Session["UserId"] + @") AND (MyID = " + id + @") OR (FriendID = " + id + @") AND (MyID = " + Session["UserId"] + @")"; profile.DataBase(unfriendhim); Response.Redirect("profile.aspx?Id=" + id); } }
protected void but3_Click(object sender, EventArgs e) { RadButton message = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("message"); if (message.CommandName == "pst") { } if (message.CommandName == "ms") { } }
protected void nextButton2_Click(object sender, EventArgs e) { RadTextBox fName = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("fName"); RadTextBox lName = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("lName"); RadTextBox email = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("email"); RadTextBox password = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("password"); RadTextBox Uname = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("unamet"); //Getting Step 2 content RadComboBox bday = (RadComboBox)RadPanelBar1.FindItemByValue("Step2").FindControl("bday"); RadComboBox bmonth = (RadComboBox)RadPanelBar1.FindItemByValue("Step2").FindControl("drpBirthMonth"); RadComboBox byear = (RadComboBox)RadPanelBar1.FindItemByValue("Step2").FindControl("drpBirthYear"); RadComboBox gender = (RadComboBox)RadPanelBar1.FindItemByValue("Step2").FindControl("gen"); RadComboBox country = (RadComboBox)RadPanelBar1.FindItemByValue("Step2").FindControl("Country"); string bdayy = bday.SelectedItem.Text + bmonth.SelectedItem.Text + byear.SelectedItem.Text; string noww = DateTime.Now.Date.ToString(); string regsteru = @"INSERT INTO [User] (Name, uname, Email, Password, Country, BirthDate, Gender, RegisterDate) VALUES ('" + fName.Text + " " + lName.Text + "','" + Uname.Text + "','" + email.Text + "','" + chita.Text + "','" + country.SelectedItem.Text + "','" + bdayy + "','" + gender.SelectedItem.Text + "','" + noww + "')"; registeruser.DataBase(regsteru); //Check User Id of the person.. string checkid = "SELECT * FROM [User] WHERE Email ='" + email.Text + "'"; ds = new DataSet(); ds = registeruser.ReturnDS(checkid); var userid = ds.Tables[0].Rows[0]["Id"].ToString(); Session["UserId"] = userid; //add justt photos album... string addjustpost = @"INSERT INTO Albums (Name, UID) VALUES ('Just Post...'," + userid + ")"; registeruser.DataBase(addjustpost); //add event photographs album ... string addeventphotos = @"INSERT INTO Albums (Name, UID) VALUES ('Event Photos'," + userid + ")"; registeruser.DataBase(addeventphotos); Server.Transfer("Complete-Profile.aspx"); }
protected void Page_Load(object sender, EventArgs e) { RadTextBox email = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("email"); RadTextBox Uname = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("unamet"); Button nextbutton = (Button)RadPanelBar1.FindItemByValue("Step1").FindControl("nextButton"); dt = new DataTable(); string emailthere = "SELECT * FROM [User] Where Email ='" + email.Text + "' OR uname = '" + Uname.Text + "'"; dt = registeruser.ReturnDT(emailthere); if (dt.Rows.Count > 0) { nextbutton.Text = "Some error ocurred!"; ViewState["Error"] = "error"; } }
protected void nextButton_Click(object sender, EventArgs e) { if (ViewState["Error"] != "error") { RadTextBox email = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("email"); RadTextBox Uname = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("unamet"); dt = new DataTable(); string emailthere = "SELECT * FROM [User] Where Email ='" + email.Text + "' OR uname = '" + Uname.Text + "'"; dt = registeruser.ReturnDT(emailthere); RadTextBox password = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("password"); RadTextBox cpassword = (RadTextBox)RadPanelBar1.FindItemByValue("Step1").FindControl("cpassword"); Label errorr12 = (Label)RadPanelBar1.FindItemByValue("Step1").FindControl("e2"); if (dt.Rows.Count > 0) { if (dt.Rows[0]["Email"] == email.Text) { errorr12.Visible = true; errorr12.Text = "Please Enter another Email , This email already exists "; } else { errorr12.Visible = true; errorr12.Text = "Please Enter another User Name , This Username already exists "; } } else if (password.Text != cpassword.Text) { errorr12.Text = "Passwords Do Not Match"; } else { chita.Visible = false; chita.Text = password.Text; int selectedIndex = RadPanelBar1.SelectedItem.Index; RadPanelBar1.Items[selectedIndex].Expanded = false; RadPanelBar1.Items[selectedIndex].Enabled = false; RadPanelBar1.Items[selectedIndex].Selected = false; RadPanelBar1.Items[selectedIndex + 1].Selected = true; RadPanelBar1.Items[selectedIndex + 1].Expanded = true; RadPanelBar1.Items[selectedIndex + 1].Enabled = true; } } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); Session["BranchAdd"] = "forRM"; userVo = (UserVo)Session["userVo"]; advisorVo = (AdvisorVo)Session["advisorVo"]; if (Session[SessionContents.BranchLogoPath] != null) { sourcePath = Session[SessionContents.BranchLogoPath].ToString(); } if (!IsPostBack) { if (advisorVo.MultiBranch != 1) { RadPanelBar1.FindItemByValue("Add Branch").Visible = false; //FindNode("Branch").ChildNodes.RemoveAt(0); } RadPanelBar1.CollapseAllItems(); ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadtopmenu('AdvisorLeftPane');", true); } }
protected void cmdreset_Click(object sender, EventArgs e) { RadComboBox cmbcat1 = (RadComboBox)RadPanelBar1.FindItemByValue("info").FindControl("cmbservicio"); RadComboBox cmbcat2 = (RadComboBox)RadPanelBar1.FindItemByValue("info").FindControl("cmbproducto"); RadComboBox cmbcat3 = (RadComboBox)RadPanelBar1.FindItemByValue("info").FindControl("cmbcentro"); RadButton rbt1 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtDefault"); RadButton rbt2 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtRevisado"); RadButton rbt3 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtTramite"); RadButton rbt4 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtCancel"); RadButton rbt5 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtaceptadopag"); RadButton rbt6 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtarechazadopag"); RadButton rbt9 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtnBarco"); RadDatePicker rdp1 = (RadDatePicker)RadPanelBar1.FindItemByValue("info").FindControl("rdpFechaIni"); RadDatePicker rdp2 = (RadDatePicker)RadPanelBar1.FindItemByValue("info").FindControl("rdpFechaFin"); RadButton rbt7 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtAnio"); RadButton rbt8 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtAniomes"); cmbcat1.ClearSelection(); cmbcat2.ClearSelection(); cmbcat3.ClearSelection(); rbt1.Checked = false; rbt2.Checked = false; rbt3.Checked = false; rbt4.Checked = false; rbt5.Checked = false; rbt6.Checked = false; rbt7.Checked = false; rbt8.Checked = false; rbt9.Checked = false; rdp1.Clear(); rdp2.Clear(); }
protected void cmdejecuta_Click(object sender, EventArgs e) { try { RadComboBox cmbcat1 = (RadComboBox)RadPanelBar1.FindItemByValue("info").FindControl("cmbservicio"); RadComboBox cmbcat2 = (RadComboBox)RadPanelBar1.FindItemByValue("info").FindControl("cmbproducto"); RadComboBox cmbcat3 = (RadComboBox)RadPanelBar1.FindItemByValue("info").FindControl("cmbcentro"); RadButton rbt1 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtDefault"); RadButton rbt2 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtRevisado"); RadButton rbt3 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtTramite"); RadButton rbt4 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtCancel"); RadButton rbt5 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtaceptadopag"); RadButton rbt6 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtarechazadopag"); RadButton rbtimp = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtnBarco"); RadDatePicker rdp1 = (RadDatePicker)RadPanelBar1.FindItemByValue("info").FindControl("rdpFechaIni"); RadDatePicker rdp2 = (RadDatePicker)RadPanelBar1.FindItemByValue("info").FindControl("rdpFechaFin"); RadButton rbt7 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtAnio"); RadButton rbt8 = (RadButton)RadPanelBar1.FindItemByValue("info").FindControl("rbtAniomes"); Int64? _centro = cmbcat3.SelectedValue.Length > 0 ? convertir.toNInt64(cmbcat3.SelectedValue) : null; Int64? _prod = cmbcat2.SelectedValue.Length > 0 ? convertir.toNInt64(cmbcat2.SelectedValue) : null; String _serv = cmbcat1.SelectedValue.Length > 0 ? cmbcat1.SelectedValue.ToString() : null; String _rpagado = null; String _rrevisado = null; if (rbt1.Checked == true) _rrevisado = "N"; else if (rbt2.Checked == true) _rrevisado = "S"; else if (rbt3.Checked == true) _rrevisado = "T"; else if (rbt4.Checked == true) _rrevisado = "C"; else _rrevisado = null; if (rbt5.Checked == true) _rpagado = "A"; else if (rbt6.Checked == true) _rpagado = "P"; else _rpagado = null; DateTime? f1 = rdp1.SelectedDate.HasValue == true ? convertir.toNDateTime(string.Format("{0:dd/MM/yyyy}", rdp1.SelectedDate.Value)) : null; DateTime? f2 = rdp2.SelectedDate.HasValue == true ? convertir.toNDateTime(string.Format("{0:dd/MM/yyyy}", rdp2.SelectedDate.Value)) : null; bool? bi = Convert.ToBoolean(rbtimp.Checked); if (bi == false) bi = null; Int16? anio = null; Int16? mes = null; if (f1.HasValue) { anio = rbt7.Checked == true ? convertir.toNInt16(rdp1.SelectedDate.Value.Year) : null; if (rbt8.Checked == true) { anio = convertir.toNInt16(rdp1.SelectedDate.Value.Year); mes = convertir.toNInt16(rdp1.SelectedDate.Value.Month); } } List<capascccmex.metadatos.movproducto> oCamposCat = new List<capascccmex.metadatos.movproducto>(); capascccmex.biz.mov_producto obj = new capascccmex.biz.mov_producto(); oCamposCat = obj.GetBizProducto02(null, _rrevisado, _rpagado, _prod, _centro, _serv, null, anio, mes, f1, f2, bi, 0, 0); Session["getCamposCatMovimiento"] = oCamposCat; gridCapturas.DataSource = oCamposCat; gridCapturas.DataBind(); gridCapturas.Rebind(); //---------------------------------------- } catch (Exception ex) { convertir.log("Error: " + ex.Message.ToString() + ", fecha: " + DateTime.Now.ToString()); windowManager1.RadAlert("Error: " + ex.Message.ToString(), 300, 100, "Cargando info", null); } }
protected void Page_Load(object sender, EventArgs e) { bool isGrpHead = false; try { SessionBo.CheckSession(); customerVo = (CustomerVo)Session["CustomerVo"]; if (customerVo != null) { Session[SessionContents.FPS_ProspectList_CustomerId] = customerVo.CustomerId; } if (!IsPostBack) { //customerVo = (CustomerVo)Session["CustomerVo"]; //customerVo = (CustomerVo)Session["CustomerVo"]; if (customerVo.FirstName != null && customerVo.MiddleName != null && customerVo.LastName != null) { string First = customerVo.FirstName.ToString(); string Middle = customerVo.MiddleName.ToString(); string Last = customerVo.LastName.ToString(); isGrpHead = customerBo.CheckCustomerGroupHead(customerVo.CustomerId); if (isGrpHead == true) { //TreeView1.Nodes.AddAt(1, new TreeNode("Group Dashboard")); RadPanelBar1.Items.Insert(1, new Telerik.Web.UI.RadPanelItem("Group Dashboard")); } if (Middle != "") { lblNameValue.Text = customerVo.FirstName.ToString() + " " + customerVo.MiddleName.ToString() + " " + customerVo.LastName.ToString(); } else { lblNameValue.Text = customerVo.FirstName.ToString() + " " + customerVo.LastName.ToString(); } lblEmailIdValue.Text = customerVo.Email.ToString(); } //TreeView1.CollapseAll(); RadPanelBar1.CollapseAllItems(); //TreeView1.FindNode("Portfolio Dashboard").Expand(); RadPanelBar1.FindItemByValue("Portfolio Dashboard").Expanded = true; } if (customerVo.UserType == "IND") { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadtopmenu('CustomerIndividualLeftPane');", true); } else { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadtopmenu('CustomerNonIndividualLeftPane');", true); } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "PortfolioLeftPane.ascx:Page_Load()"); object[] objects = new object[1]; objects[0] = customerVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
void loadRegActual() { Int64?_idRrg = convertir.toNInt64(Session["getIdRegGrid"]); List <capascccmex.metadatos.movproducto> oCamposCat = new List <capascccmex.metadatos.movproducto>(); oCamposCat = (List <capascccmex.metadatos.movproducto>)Session["getCamposCatMovimiento"]; var getReg = from oReg in oCamposCat where oReg.IdReg == _idRrg select oReg; Label lblorderservicio = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblorderservicio"); Label lblidproducto = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblidproducto"); Label lblproducto = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblproducto"); Label lblidcentro = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblidcentro"); Label lblcentro = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblcentro"); Label lblidservicio = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblidservicio"); Label lblservicio = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblservicio"); Label lblbarco = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblBarco"); Label lblexp = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblexp"); Label lblmezcla = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblmezcla"); Label lblpropileno_turbosina = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblpropileno_turbosina"); Label lblreg_propileno_turbosina = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblreg_propileno_turbosina"); Label lblanio_mes = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblanio_mes"); Label lblfecha = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblfecha"); Label lblfolcertcantidad_file = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblfolcertcantidad_file"); Label lblfolcertcalidad_file = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblfolcertcalidad_file"); bool bImp = false; foreach (var iReg in getReg) { cmbrevisado.SelectedValue = iReg.Estatus_revisado.ToString(); cmbestatuspago.SelectedValue = iReg.Estatus_pagado.ToString(); lblctrlregProd.Text = iReg.Idregbyprod.ToString(); lblorderservicio.Text = iReg.Orden_servicio.ToString().Trim().ToUpper(); lblidproducto.Text = iReg.IdProducto.ToString(); lblproducto.Text = iReg.NombreProducto.ToString().Trim().ToUpper(); lblidcentro.Text = iReg.IdCentro.ToString(); lblcentro.Text = iReg.NombreCentro.ToString().Trim().ToUpper(); lblidservicio.Text = iReg.IdServicio.ToString(); lblservicio.Text = iReg.NombreServicio.ToString().Trim().ToUpper(); lblmezcla.Text = string.Format("{0:#,#0.000}", iReg.Cant_insp_mezcla); lblbarco.Text = iReg.NombreBarco.ToString(); bImp = Convert.ToBoolean(iReg.BarcoImp); lblexp.Text = bImp == true ? "Importación" : ""; if (iReg.IdProducto.ToString().CompareTo("33006") == 0) { lblpropileno_turbosina.Text = "Lote"; lblreg_propileno_turbosina.Text = iReg.Lote_turbosina; } else { lblpropileno_turbosina.Text = "Propileno"; lblreg_propileno_turbosina.Text = string.Format("{0:#,#0.000}", iReg.Propileno); } string[] words = iReg.Referencia_folio.Split('|'); lblanio_mes.Text = string.Format("{0:yyyy | MM}", iReg.Fecha); lblfecha.Text = string.Format("{0:dd/MM/yyyy}", iReg.Fecha); lblfolcertcantidad_file.Text = string.Format("{0} | {1}", iReg.Folio_cert_cant_aux, words[1]); lblfolcertcalidad_file.Text = string.Format("{0} | {1}", iReg.Folio_cert_calidad_aux, words[0]); addComent.Text = iReg.Comentarios.ToString(); //Solo personal de pmx puede modificar el registro... if (iReg.Estatus_revisado.CompareTo("S") == 0 && iReg.Estatus_pagado.CompareTo("A") == 0) { cmdEjecuta.Enabled = false; } else { cmdEjecuta.Enabled = true; } } }
protected void Page_Load(object sender, EventArgs e) { string id = Request.QueryString["id"].ToString(); string myd = Session["UserId"].ToString(); string checkboxreq = @"SELECT MyID, SID, FollowDate, FollowStatus, ID FROM Box WHERE (MyID = " + myd + ") AND (SID = " + id + ")"; DataTable chboc = new DataTable(); chboc = profile.ReturnDT(checkboxreq); if (chboc.Rows.Count != 0) { RadButton addbox = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("addbox"); addbox.Text = "Remove From Box"; addbox.CommandName = "rfb"; } string asked2connect = @"SELECT * FROM Friends WHERE (MyID = " + Session["UserId"] + ") AND (FriendID = " + id + ") AND (FriendStatus = 0) "; DataTable dt3 = new DataTable(); dt3 = profile.ReturnDT(asked2connect); if (dt3.Rows.Count > 0) { RadButton editprofile = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("friendreq"); editprofile.CommandName = "rempen"; editprofile.Text = "Cancel Pending Connect Req?"; } string chkfriendRequest = @"SELECT * FROM Friends WHERE (MyId=" + id + " and FriendId=" + Session["UserId"].ToString() + ")"; DataTable dt1 = new DataTable(); dt1 = profile.ReturnDT(chkfriendRequest); if (dt1.Rows.Count > 0) { if (id == Session["UserId"].ToString()) { RadPanelBar1.FindItemByValue("connect").Text = "Personalize Profile"; RadButton editprofile = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("friendreq"); editprofile.Text = "Edit Your Profile"; editprofile.CommandName = "ep"; RadButton addbox = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("addbox"); addbox.Text = "Change Profile Picture"; addbox.CommandName = "cpp"; RadButton message = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("message"); message.Text = "Privacy Settings"; message.CommandName = "pst"; } else if (dt1.Rows[0]["FriendStatus"].ToString() == "1") { RadButton editprofile = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("friendreq"); editprofile.Text = "Remove Connection"; editprofile.CommandName = "unfriend"; RadButton addbox = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("addbox"); addbox.Visible = false; RadButton message = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("message"); message.Text = "Message"; message.CommandName = "ms"; } else if (dt1.Rows[0]["FriendStatus"].ToString() == "0") { RadButton editprofile = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("friendreq"); editprofile.Text = "Accept Connection"; editprofile.CommandName = "befriend"; RadButton addbox = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("addbox"); RadButton message = (RadButton)RadPanelBar1.FindItemByValue("buttons").FindControl("message"); message.Text = "Message"; message.CommandName = "ms"; } } DataSet udet = new DataSet(); string urprofile = @"SELECT Name,City, ID, Country, College, School, Company, Gender, Degree, uname, Designation, BirthDate FROM [User] WHERE (ID =" + id + ")"; udet = profile.ReturnDS(urprofile); Label name = (Label)RadPanelBar1.FindItemByValue("bi").FindControl("nm"); Label dob = (Label)RadPanelBar1.FindItemByValue("bi").FindControl("dob"); Label gen = (Label)RadPanelBar1.FindItemByValue("bi").FindControl("gen"); Label born = (Label)RadPanelBar1.FindItemByValue("bi").FindControl("born"); name.Text = udet.Tables[0].Rows[0]["Name"].ToString(); dob.Text = udet.Tables[0].Rows[0]["BirthDate"].ToString(); gen.Text = udet.Tables[0].Rows[0]["Gender"].ToString(); born.Text = udet.Tables[0].Rows[0]["City"].ToString(); //Education And Work ... if (udet.Tables[0].Rows[0]["College"] is DBNull && udet.Tables[0].Rows[0]["School"] is DBNull && udet.Tables[0].Rows[0]["Designation"] is DBNull && udet.Tables[0].Rows[0]["Company"] is DBNull && udet.Tables[0].Rows[0]["Degree"] is DBNull) { eduwork.Visible = false; RadTabStrip1.FindTabByText("Education and Work").Visible = false; } else { if (udet.Tables[0].Rows[0]["School"] is DBNull) { school.Text = ": Not disclosed by user"; } else { school.Text = ": " + udet.Tables[0].Rows[0]["School"].ToString(); } if (udet.Tables[0].Rows[0]["College"] is DBNull) { collegea.Text = ": Not disclosed by user"; } else { collegea.Text = ": " + udet.Tables[0].Rows[0]["College"].ToString(); } if (udet.Tables[0].Rows[0]["Degree"] is DBNull) { degree.Text = ": Not disclosed by user"; } else { degree.Text = ": " + udet.Tables[0].Rows[0]["Degree"].ToString(); } if (udet.Tables[0].Rows[0]["Company"] is DBNull) { company.Text = ": Not disclosed by user"; } else { company.Text = ": " + udet.Tables[0].Rows[0]["Company"].ToString(); } if (udet.Tables[0].Rows[0]["Designation"] is DBNull) { college.Text = ": Not disclosed by user"; } else { college.Text = ": " + udet.Tables[0].Rows[0]["Designation"].ToString(); } } DataSet profilepic = new DataSet(); string propicsql = @"SELECT Image FROM Propic WHERE (UID = " + id + ") AND ([Current] = 1)"; profilepic = profile.ReturnDS(propicsql); RadBinaryImage prop = (RadBinaryImage)RadPanelBar1.FindItemByValue("bi").FindControl("profilepicture"); if (profilepic.Tables[0].Rows[0]["Image"] is DBNull == false) { prop.DataValue = (byte[])profilepic.Tables[0].Rows[0]["Image"]; } else { prop.Visible = false; } DataSet mimage = new DataSet(); string mimagesql = @"SELECT Image, Desciption FROM Mimage WHERE (UID = " + id + ")"; mimage = profile.ReturnDS(mimagesql); if (mimage.Tables[0].Rows[0]["Image"] is DBNull) { mimageandpic.Visible = false; RadTabStrip1.FindTabByText("Mimage").Visible = false; } else { mmimage.DataValue = (byte[])mimage.Tables[0].Rows[0]["Image"]; } string getallbumsofuser = @"SELECT Name, UID, ID FROM Albums WHERE (UID = " + id + ")"; /* * string getalbums = @"SELECT TOP (1) Albums.Name, Albums.UID, Albums.ID, Photos.Photo * FROM Albums INNER JOIN * Photos ON Albums.ID = Photos.AlbumID * WHERE (Albums.UID = " +id+")"; * DataSet displaypics = new DataSet(); * displaypics = profile.ReturnDS(getalbums); * * RadBinaryImage A01 = new RadBinaryImage(); * A01.DataValue = (byte[])displaypics.Tables[0].Rows[0]["Photo"]; * A01.Width = 150; * A01.Height = 150; * A01.ResizeMode = BinaryImageResizeMode.Fit; * photos.Controls.Add(A01); */ /* DataTable evntsofmylife = new DataTable(); * string evntoflifesql = @"SELECT ID, EventName, Description, UID, Image * FROM Events * WHERE (UID = "+id+")"; * evntsofmylife = profile.ReturnDT(evntoflifesql); * if (evntsofmylife.Rows.Count > 0) * { * Repeater1.DataSource = evntsofmylife; * Repeater1.DataBind(); * * } * else * { * eventlife.Visible = false; * RadTabStrip1.FindTabByText("Events in Life").Visible = false; * } */ DataSet philo = new DataSet(); string philosql = @"SELECT Religion, Life, Political, Quote FROM Political WHERE (UID = " + id + ")"; philo = profile.ReturnDS(philosql); if (philo.Tables[0].Rows[0]["Religion"] is DBNull && philo.Tables[0].Rows[0]["Life"] is DBNull && philo.Tables[0].Rows[0]["Quote"] is DBNull && philo.Tables[0].Rows[0]["Political"] is DBNull) { philosophy.Visible = false; RadTabStrip1.FindTabByText("Philosophy").Visible = false; } else { if (philo.Tables[0].Rows[0]["Religion"] is DBNull) { rel.Text = ": Not disclosed by user"; } else { rel.Text = ": " + philo.Tables[0].Rows[0]["Religion"].ToString(); } if (philo.Tables[0].Rows[0]["Life"] is DBNull) { life.Text = ": Not disclosed by user"; } else { life.Text = ": " + philo.Tables[0].Rows[0]["Life"].ToString(); } if (philo.Tables[0].Rows[0]["Quote"] is DBNull) { qute.Text = ": Not disclosed by user"; } else { qute.Text = ": " + philo.Tables[0].Rows[0]["Quote"].ToString(); } if (philo.Tables[0].Rows[0]["Political"] is DBNull) { politics.Text = ": Not disclosed by user"; } else { politics.Text = ": " + philo.Tables[0].Rows[0]["Political"].ToString(); } } DataSet eement = new DataSet(); string ementsql = @"SELECT Movies, Sports, Television, Music, Books FROM Ement WHERE (UID = " + id + ")"; eement = profile.ReturnDS(ementsql); if (eement.Tables[0].Rows[0]["Sports"] is DBNull && eement.Tables[0].Rows[0]["Television"] is DBNull && eement.Tables[0].Rows[0]["Music"] is DBNull && eement.Tables[0].Rows[0]["Books"] is DBNull) { ement.Visible = false; RadTabStrip1.FindTabByText("Entertainment and Intrests").Visible = false; } else { if (eement.Tables[0].Rows[0]["Movies"] is DBNull) { movies.Text = ": Not disclosed by user"; } else { movies.Text = ": " + eement.Tables[0].Rows[0]["Movies"].ToString(); } if (eement.Tables[0].Rows[0]["Books"] is DBNull) { books.Text = ": Not disclosed by user"; } else { books.Text = ": " + eement.Tables[0].Rows[0]["Books"].ToString(); } if (eement.Tables[0].Rows[0]["Music"] is DBNull) { music.Text = ": Not disclosed by user"; } else { music.Text = ": " + eement.Tables[0].Rows[0]["Music"].ToString(); } if (eement.Tables[0].Rows[0]["Television"] is DBNull) { tel.Text = ": Not disclosed by user"; } else { tel.Text = ": " + eement.Tables[0].Rows[0]["Television"].ToString(); } if (eement.Tables[0].Rows[0]["Sports"] is DBNull) { sports.Text = ": Not disclosed by user"; } else { sports.Text = ": " + eement.Tables[0].Rows[0]["Sports"].ToString(); } } DataSet achievve = new DataSet(); string achievesql = @"SELECT Achievement FROM Achieve WHERE (UID = " + id + ")"; achievve = profile.ReturnDS(achievesql); if (achievve.Tables[0].Rows[0]["Achievement"] is DBNull) { achieve.Visible = false; RadTabStrip1.FindTabByText("Achievements").Visible = false; } else { achievements.Text = achievve.Tables[0].Rows[0]["Achievement"].ToString(); } DataSet coninfo = new DataSet(); string coninfosql = @"SELECT Website, Phone, Email, Address FROM Contact WHERE (UID = " + id + ")"; coninfo = profile.ReturnDS(coninfosql); if (coninfo.Tables[0].Rows[0]["Website"] is DBNull && coninfo.Tables[0].Rows[0]["Phone"] is DBNull && coninfo.Tables[0].Rows[0]["Email"] is DBNull && coninfo.Tables[0].Rows[0]["Address"] is DBNull) { contactme.Visible = false; RadTabStrip1.FindTabByText("Contact Information").Visible = false; } else { if (coninfo.Tables[0].Rows[0]["Website"] is DBNull) { web.Text = ": Not disclosed by user"; } else { web.Text = ": <a class='someclasslink' href='" + coninfo.Tables[0].Rows[0]["Website"].ToString() + "' target='_blank'>" + coninfo.Tables[0].Rows[0]["Website"].ToString() + "</a>"; } if (coninfo.Tables[0].Rows[0]["Phone"] is DBNull) { phone.Text = ": Not disclosed by user"; } else { phone.Text = ": " + coninfo.Tables[0].Rows[0]["Phone"].ToString(); } if (coninfo.Tables[0].Rows[0]["Address"] is DBNull) { add.Text = ": Not disclosed by user"; } else { add.Text = ": " + coninfo.Tables[0].Rows[0]["Address"].ToString(); } if (coninfo.Tables[0].Rows[0]["Email"] is DBNull) { email.Text = ": Not disclosed by user"; } else { email.Text = ": <a class='someclasslink' href='mailto:" + coninfo.Tables[0].Rows[0]["Email"].ToString() + "'>" + coninfo.Tables[0].Rows[0]["Email"].ToString() + "</a>"; } } }
void loadRegActual() { Int64?_idRrg = convertir.toNInt64(Session["getIdRegGrid"]); List <capascccmex.metadatos.movproducto> oCamposCat = new List <capascccmex.metadatos.movproducto>(); oCamposCat = (List <capascccmex.metadatos.movproducto>)Session["getCmpCatMovimientoadmin"]; var getReg = from oReg in oCamposCat where oReg.IdReg == _idRrg select oReg; Label lblorderservicio = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblorderservicio"); Label lblidproducto = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblidproducto"); Label lblproducto = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblproducto"); Label lblidcentro = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblidcentro"); Label lblcentro = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblcentro"); Label lblidservicio = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblidservicio"); Label lblservicio = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblservicio"); Label lblmezcla = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblmezcla"); Label lblpropileno_turbosina = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblpropileno_turbosina"); Label lblreg_propileno_turbosina = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblreg_propileno_turbosina"); Label lblanio_mes = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblanio_mes"); Label lblfecha = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblfecha"); Label lblfolcertcantidad_file = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblfolcertcantidad_file"); Label lblfolcertcalidad_file = (Label)RadPanelBar1.FindItemByValue("info").FindControl("lblfolcertcalidad_file"); foreach (var iReg in getReg) { cmbinstalacion.SelectedValue = iReg.IdInst.ToString(); addcantidadinsp.Text = iReg.Cant_insp_mezcla.ToString(); rdpFecha.SelectedDate = iReg.Fecha; addordenservicio.Text = iReg.Orden_servicio.ToString(); addanio.Text = iReg.Fecha.Value.Year.ToString(); addmes.Text = iReg.Fecha.Value.Month.ToString(); addpropileno.Text = iReg.Propileno.ToString(); lblctrlregProd.Text = iReg.Idregbyprod.ToString(); lblorderservicio.Text = iReg.Orden_servicio.ToString().Trim().ToUpper(); lblidproducto.Text = iReg.IdProducto.ToString(); lblproducto.Text = iReg.NombreProducto.ToString().Trim().ToUpper(); lblidcentro.Text = iReg.IdCentro.ToString(); lblcentro.Text = iReg.NombreCentro.ToString().Trim().ToUpper(); lblidservicio.Text = iReg.IdServicio.ToString(); lblservicio.Text = iReg.NombreServicio.ToString().Trim().ToUpper(); lblmezcla.Text = string.Format("{0:#,#0.000}", iReg.Cant_insp_mezcla); if (iReg.IdProducto.ToString().CompareTo("33006") == 0) { lblpropileno_turbosina.Text = "Lote"; lblreg_propileno_turbosina.Text = iReg.Lote_turbosina; } else { lblpropileno_turbosina.Text = "Propileno"; lblreg_propileno_turbosina.Text = string.Format("{0:#,#0.000}", iReg.Propileno); } string[] words = iReg.Referencia_folio.Split('|'); lblanio_mes.Text = string.Format("{0:yyyy | MM}", iReg.Fecha); lblfecha.Text = string.Format("{0:dd/MM/yyyy}", iReg.Fecha); lblfolcertcantidad_file.Text = string.Format("{0} | {1}", iReg.Folio_cert_cant_aux, words[1]); lblfolcertcalidad_file.Text = string.Format("{0} | {1}", iReg.Folio_cert_calidad_aux, words[0]); if (iReg.Estatus_revisado.CompareTo("S") == 0 && iReg.Estatus_pagado.CompareTo("A") == 0) { cmdEjecuta.Enabled = false; btndel.Enabled = false; } else { cmdEjecuta.Enabled = true; btndel.Enabled = true; } cmdEjecuta.Enabled = true; btndel.Enabled = true; } }
protected void Page_Load(object sender, EventArgs e) { //if (!IsPostBack) //{ // customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; // string First = customerVo.FirstName.ToString(); // string Middle = customerVo.MiddleName.ToString(); // string Last = customerVo.LastName.ToString(); // if (Middle != "") // { // lblNameValue.Text = customerVo.FirstName.ToString() + " " + customerVo.MiddleName.ToString() + " " + customerVo.LastName.ToString(); // } // else // { // lblNameValue.Text = customerVo.FirstName.ToString() + " " + customerVo.LastName.ToString(); // } // lblEmailIdValue.Text = customerVo.Email.ToString(); //} SessionBo.CheckSession(); customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; if (customerVo != null) { Session[SessionContents.FPS_ProspectList_CustomerId] = customerVo.CustomerId; } if (!IsPostBack) { isGrpHead = customerBo.CheckCustomerGroupHead(customerVo.CustomerId); if (isGrpHead == true) { //TreeView1.Nodes.AddAt(0, new TreeNode("Group Home")); RadPanelBar1.Items.Insert(0, new Telerik.Web.UI.RadPanelItem("Group Home")); Session["IsDashboard"] = "true"; } else { Session["IsDashboard"] = "CustDashboard"; } string IsDashboard = string.Empty; if (Session["IsDashboard"] != null) { IsDashboard = Session["IsDashboard"].ToString(); } if (IsDashboard == "true") { //TreeView1.CollapseAll(); RadPanelBar1.CollapseAllItems(); if (customerVo.RelationShip == "SELF") { //TreeView1.FindNode("Group Home").Selected = true; RadPanelBar1.FindItemByText("Group Home").Selected = true; } else { //TreeView1.FindNode("Customer Dashboard").Selected = true; RadPanelBar1.FindItemByValue("Customer Dashboard").Selected = true; } Session["IsDashboard"] = "false"; } else if (IsDashboard == "CustDashboard") { //TreeView1.CollapseAll(); //TreeView1.FindNode("Customer Dashboard").Selected = true; RadPanelBar1.CollapseAllItems(); RadPanelBar1.FindItemByValue("Customer Dashboard").Selected = true; } else { //TreeView1.CollapseAll(); //TreeView1.FindNode("Profile Dashboard").Expand(); RadPanelBar1.CollapseAllItems(); RadPanelBar1.FindItemByValue("Profile Dashboard").Expanded = true; //TreeView1.FindNode("Profile Dashboard").Selected = true; RadPanelBar1.FindItemByValue("Profile Dashboard").Selected = true; } } ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadtopmenu('CustomerIndividualLeftPane');", true); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string project_id = Session["PROJECT_ID"].ToString(); string username = Session["USER_NAME"].ToString(); if (username.Length == 0) { //string url = "~/LoginPage.aspx?RetUrl=" + Request.Url.AbsolutePath.ToString(); string url = "~/LoginPage.aspx"; Response.Redirect(url); } string id = WebTools.GetExpr("HIDE_ID", "USERS", " USER_NAME ='" + Session["USER_NAME"] + "'"); string[] hide_id = id.Split(','); foreach (string control in hide_id) { RadPanelItem selectedItem = RadPanelBar1.FindItemByValue(control); if (selectedItem != null) { selectedItem.Visible = false; } } //if (project_id == "" || project_id == null) //{ // Session["PROJECT_ID"] = Request.Cookies["PROJECT_ID"].Value; // Session["PROJECT"] = Request.Cookies["PROJECT"].Value; // Session["JOB_CODE"] = Request.Cookies["JOB_CODE"].Value; // Session["CONNECT_AS"] = Request.Cookies["CONNECT_AS"].Value; // Session["CONNECT"] = Request.Cookies["CONNECT"].Value; //} projectLabel.Text = Session["PROJECT"].ToString(); UserNameLablel.Text = Session["USER_NAME"].ToString(); //UserNameLablel.Text = users.Count.ToString(); //Search //Session["MASTER_SEARCH"] = string.Empty; if (Session["ACCOUNT_PIC_URL"].ToString() != string.Empty) { ImageButtonUserInfo.Height = Unit.Pixel(30); //ImageButtonUserInfo.Width = Unit.Pixel(30); ImageButtonUserInfo.BorderStyle = BorderStyle.Solid; ImageButtonUserInfo.BorderWidth = Unit.Pixel(1); ImageButtonUserInfo.BorderColor = System.Drawing.Color.Gray; ImageButtonUserInfo.ImageUrl = Session["ACCOUNT_PIC_URL"].ToString(); } foreach (DropDownListItem item in ddLang.Items) { if (Session["lang"].ToString().Contains(item.Value.ToString())) { ddLang.SelectedIndex = item.Index; //item.Selected = true; break; } } } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); string First = null; string Middle = null; string Last = null; userVo = (UserVo)Session["userVo"]; bool isGrpHead = false; try { customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; if (customerVo != null) { Session[SessionContents.FPS_ProspectList_CustomerId] = customerVo.CustomerId; } if (!IsPostBack) { First = customerVo.FirstName.ToString(); Middle = customerVo.MiddleName.ToString(); Last = customerVo.LastName.ToString(); if (Session[SessionContents.CurrentUserRole].ToString() == "RM") { hdnUserRole.Value = "RM"; } else if (Session[SessionContents.CurrentUserRole].ToString() == "BM") { hdnUserRole.Value = "BM"; } else if (Session[SessionContents.CurrentUserRole].ToString() == "Adviser") { hdnUserRole.Value = "Adviser"; } if (Middle != "") { lblNameValue.Text = customerVo.FirstName.ToString() + " " + customerVo.MiddleName.ToString() + " " + customerVo.LastName.ToString(); } else { lblNameValue.Text = customerVo.FirstName.ToString() + " " + customerVo.LastName.ToString(); } lblEmailIdValue.Text = customerVo.Email.ToString(); isGrpHead = customerBo.CheckCustomerGroupHead(customerVo.CustomerId); if (isGrpHead == true) { //TreeView1.Nodes.AddAt(1, new TreeNode("Group Dashboard")); RadPanelBar1.Items.Insert(1, new Telerik.Web.UI.RadPanelItem("Group Dashboard")); RadPanelBar1.Items.FindItemByText("Group Dashboard").Value = "Group Dashboard"; } string IsDashboard = string.Empty; if (Session["IsDashboard"] != null) { IsDashboard = Session["IsDashboard"].ToString(); } if (IsDashboard == "true") { //TreeView1.CollapseAll(); RadPanelBar1.CollapseAllItems(); if (isGrpHead == true) { //TreeView1.FindNode("Group Dashboard").Selected = true; RadPanelBar1.FindItemByText("Group Dashboard").Selected = true; } else { //TreeView1.FindNode("Customer Dashboard").Selected = true; RadPanelBar1.FindItemByValue("Customer Dashboard").Selected = true; } Session["IsDashboard"] = "false"; } else if (IsDashboard == "CustDashboard") { //TreeView1.CollapseAll(); //TreeView1.FindNode("Customer Dashboard").Selected = true; RadPanelBar1.FindItemByValue("Customer Dashboard").Selected = true; Session["IsDashboard"] = "false"; } else if (Session[SessionContents.FPS_TreeView_Status] != null) { if (Session[SessionContents.FPS_TreeView_Status].ToString() == "FinanceProfile") { //TreeView1.CollapseAll(); //TreeView1.FindNode("Financial Planning").Expand(); RadPanelBar1.FindItemByValue("Financial Planning").Expanded = true; //TreeView1.FindNode("FinanceProfile").Selected = true; //TreeNode tn = new TreeNode("Finance Profile", "FinanceProfile"); RadPanelBar1.FindItemByValue("FinanceProfile").Selected = true; //TreeView1.SelectedNode.Text = "Finance Profile"; } } else { //TreeView1.CollapseAll(); // TreeView1.FindNode("Profile Dashboard").Expand(); // TreeView1.FindNode("Profile Dashboard").Selected = true; } } ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "topMenu", "loadtopmenu('CustomerIndividualLeftPane');", true); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "RMCustomerIndividualLeftPane.ascx.cs:Page_Load()"); object[] objects = new object[4]; objects[0] = customerVo; objects[1] = First; objects[2] = Middle; objects[3] = Last; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }