|
How to identify which chart got clicked, ASP.NET |
Posted by mbe on May-09-2011 04:59 |
|
I have a number of clickable charts on the same page. On the return Url I would like to identify which chart got clicked, is that possible? Thanks |
Re: How to identify which chart got clicked, ASP.NET |
Posted by Peter Kwan on May-10-2011 02:44 |
|
Hi mbe,
You can add a query parameter to the URL, so you can identify which chart is being clicked. For example (in C#):
WebChartViewer1.ImageMap = c.getHTMLImageMap("xxx.aspx?chart=1", "", "title='{value}'");
....
WebChartViewer2.ImageMap = c.getHTMLImageMap("xxx.aspx?chart=2", "", "title='{value}'");
The "chart=1" and "chart=2" query parameter above can be used to identify which chart is being clicked.
Hope this can help.
Regards
Peter Kwan |
|