public string GetJobDetail() { string msgBody = string.Empty; dblquote = '"'; if (Request.QueryString["jobid"] != null) { _jobid = Request.QueryString["jobid"].ToString(); if (Request.QueryString["cid"] != null) { if (Request.QueryString["cid"].ToString() != string.Empty) { _clientid = Convert.ToInt32(Request.QueryString["cid"].ToString()); } } BrandingDO b = o.GetBranding(_clientid); string GetUrl = b.SubDomain + "." + SiteBAL.GetRootDomain(); DataSet ds = objSearchDescriptionBAL.SelectJobByJobIdVisible(_jobid, _clientid); if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { _jobtitle = ds.Tables[0].Rows[0]["jobtitle"].ToString(); StrUrl = GetURLs(); msgBody = msgBody + "Hi, <br/><br/> \n\n I think you may be interested in this job in this Hospital: \n\n<br/><br/> <a href=\"" + StrUrl + "Jobs/Job_SearchDescription.aspx?jobId=" + _jobid + "&cid=" + _clientid.ToString() + "\"> " + _jobtitle + " </a> <br> \n\n<br/><br/> Click on the link above, or go to \n<a href=" + dblquote + GetUrl + dblquote + " title= " + GetUrl + " > " + GetUrl + "</a> \n\n to learn more about the great opportunities in this Hospital. "; char[] japanese = { '\u3078', '\u3087', '\u3045', '\u3053', '\u305D', '\u0021' }; } } return(msgBody); }
protected void Page_Load(object sender, EventArgs e) { lbtnRegister1.PostBackUrl = "~/Default.aspx"; _siteUrl = SiteBAL.GetURL(); DefaultSettings(); LoadHome(); }
protected void LoadHome() { if (Session["SignInId"] != null) { if (Session["SignInLoginId"] != null) { int signInId = Convert.ToInt32(Session["SignInLoginId"]); LoginNewDO l = new LoginBAL().GetAccount(signInId); if (l != null) { if (!String.IsNullOrEmpty(l.EmailId)) { phDiscussion.Controls.Add(new LiteralControl("<a href=\"DiscussionForum.aspx\" target=\"_blank\">Discussion Forum</a>")); } } } if ((AccountType)Convert.ToInt32(Session["SignInAccountTypeId"]) == AccountType.Patient) { phHome.Controls.Add(new LiteralControl("<li><a href=\"Patient.aspx\">Home</a></li>")); } else if ((AccountType)Convert.ToInt32(Session["SignInAccountTypeId"]) == AccountType.Doctor) { phHome.Controls.Add(new LiteralControl("<li><a href=\"Doctor.aspx\">Home</a></li>")); } else if ((AccountType)Convert.ToInt32(Session["SignInAccountTypeId"]) == AccountType.Organization) { phHome.Controls.Add(new LiteralControl("<li><a href=\"Organization.aspx\">Home</a></li>")); } else if ((AccountType)Convert.ToInt32(Session["SignInAccountTypeId"]) == AccountType.Service) { phHome.Controls.Add(new LiteralControl("<li><a href=\"Service.aspx\">Home</a></li>")); } else { phHome.Controls.Add(new LiteralControl("<li><a href=\"Profile.aspx\">Home</a></li>")); } } else { if ((Request.Url.AbsolutePath.Contains("Hospital.aspx")) || (Request.Url.AbsolutePath.Contains("ConfirmByEmail.aspx"))) { phHome.Controls.Add(new LiteralControl("<li><a href=\"" + SiteBAL.GetURL() + "\">Home</a></li>")); lbtnFeatures.Visible = false; lbtnFaq.Visible = false; } else if ((Request.Url.AbsolutePath.Contains("Jobs"))) { phHome.Controls.Add(new LiteralControl("<li><a href=\"" + SiteBAL.GetURL() + "\">Home</a></li>")); } else { phHome.Controls.Add(new LiteralControl("<li><a href=\"Default.aspx\">Home</a></li>")); } } }
protected string GetUrl() { return(SiteBAL.GetURL()); }
protected void lbtnBackToAbmin_Click(object sender, EventArgs e) { Response.Redirect(SiteBAL.GetURL() + "Admin/AdminLoginView.aspx"); }
protected void Page_Load(object sender, EventArgs e) { _siteUrl = SiteBAL.GetURL(); DefaultSettings(); LoadHome(); }
protected string GetRootDomain() { return(SiteBAL.GetRootDomain()); }