Hi,
I have created asmx(c#) webservice for morris chart.Now while invoking my web service from my asp.net application, i have manually need to include the following links in my page head section that are supported for morris charts.
It is possible to load this link to my aspx page head section while invoking the web service.I dont want to add it mannually.Everything need to getting from the webservice itself.
[Webmethod]
public string googleAPIPieChart(DataTable dt, String chartTitle = null, string chartHeight = null, string chartWidth = null)
{
chartTitle = chartTitle ?? "Sample Pie Chart";
chartHeight = chartHeight ?? "250";
chartWidth = chartWidth ?? "250";
StringBuilder sb = new StringBuilder();
try
{
string sJsonData = Charts.ConvertDataTableToString(dt);
sb.Append("");
sb.Append(Environment.NewLine);
sb.Append(Environment.NewLine);
sb.Append("");
}
catch (Exception ex)
{
Charts.ChartlogFile(ex.Message.ToString() + "\n");
}
return sb.ToString();
}
My aspx Page
Vishal JadavPosted Dec 24, 2015, 8:46 AM