Skip to main content

I have mention how to split values in your chart web part,

foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))

foreach (DataRow item in dt.Rows)
{
   if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))
                                 
   item["YourItemname"] = item["YourItemname"].ToString().Split('#')[1];
}

}

Hope this answers is very helpful for you.

I have mention how to split values in your chart web part,

foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))

                           item["YourItemname"] = item["YourItemname"].ToString().Split('#')[1];

}

Hope this answers is very helpful for you.

I have mention how to split values in your chart web part,

foreach (DataRow item in dt.Rows)
{
   if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))
                                 
   item["YourItemname"] = item["YourItemname"].ToString().Split('#')[1];
}

Hope this answers is very helpful for you.

deleted 4 characters in body
Source Link

I have mention how to split values in your Chartchart web Partpart answer given below.,

foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))

                           item["LinkFilename"]item["YourItemname"] = item["LinkFilename"]item["YourItemname"].ToString().Split('#')[1];

}

Hope this answers is very helpful for you.

I have mention Chart web Part answer given below.

foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))

                           item["LinkFilename"] = item["LinkFilename"].ToString().Split('#')[1];

}

Hope this answers is very helpful for you.

I have mention how to split values in your chart web part,

foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))

                           item["YourItemname"] = item["YourItemname"].ToString().Split('#')[1];

}

Hope this answers is very helpful for you.

deleted 4 characters in body
Source Link

I have given belowmention Chart web Part answer given below.

foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))

                           item["LinkFilename"] = item["LinkFilename"].ToString().Split('#')[1];

}

Hope this answers is very helpful for you.

I have given below Chart web Part answer given below.

foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))

                           item["LinkFilename"] = item["LinkFilename"].ToString().Split('#')[1];

}

Hope this answers is very helpful for you.

I have mention Chart web Part answer given below.

foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["YourItemname"].ToString()) && item["yourItemname"].ToString().Contains("#"))

                           item["LinkFilename"] = item["LinkFilename"].ToString().Split('#')[1];

}

Hope this answers is very helpful for you.

Source Link
Loading