public string GetExamLink() { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBEStudent.IntFlag = 1; objBStudent.BSetExamStartandEndTime(objBEStudent); System.Text.StringBuilder sb = new System.Text.StringBuilder(); objBStudent.BGetExamLink(objBEStudent); if (!objBEStudent.strExamLink.Contains("http://") && !objBEStudent.strExamLink.Contains("https://")) { objBEStudent.strExamLink = "http://" + objBEStudent.strExamLink; } return(objBEStudent.strExamLink); }
public string GetExamLink(string TransID) { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = Convert.ToInt64(TransID); objBEStudent.IntFlag = 1; objBStudent.BSetExamStartandEndTime(objBEStudent); System.Text.StringBuilder sb = new System.Text.StringBuilder(); objBStudent.BGetExamLink(objBEStudent); string ExamLink = string.Empty; string ExamByFile = string.Empty; if (objBEStudent.strExamLink != string.Empty) { ExamByFile = objBEStudent.strExamLink.Split('|')[0]; if (ExamByFile == "0") { ExamLink = objBEStudent.strExamLink.Split('|')[1]; } else { ExamLink = System.Configuration.ConfigurationManager.AppSettings["ProviderUploadsPath"].ToString() + objBEStudent.strExamLink.Split('|')[2]; } if (!ExamLink.Contains("http://") && !ExamLink.Contains("https://")) { ExamLink = "http://" + ExamLink; } return(ExamByFile + "|" + ExamLink); } else { return(string.Empty); } }