protected void asd_Click(object sender, EventArgs e) { if (Common.Common.ApplicationInformation.LoggedInUser.RGroupIds != null) { string Documentid = string.Empty; string GroupIds = string.Empty; string DocumentIds = string.Empty; string ContactIds = string.Empty; //---------------- if (Session["ReportDocumentIDs"].ToString() != null) { DocumentIds = Session["ReportDocumentIDs"].ToString(); Documentid = DocumentIds.Substring(0, DocumentIds.LastIndexOf(',')); } else { Documentid = null; }
DocumentIds.LastIndexOf(',')
if(DocumentIds.Contains(",")) Documentid = DocumentIds.Substring(0, DocumentIds.LastIndexOf(',')); else // some code here
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)