Page 1 of 1
ASP .NET getchart?chart="X"; how to access X?
Posted: Wed Oct 27, 2010 11:02 pm
by 15657590
I need a unique chart ID for each chart that I generate. I observe that the request.querystring variable "chart" passed to getchart.aspx has an unique ID. How can I access this ID in my aspx code?
getchart?chart="X"; how to access X?
thanks
Jagadish
Re: ASP .NET getchart?chart="X"; how to access X?
Posted: Thu Oct 28, 2010 10:11 am
by narcis
Hi Jagadish,
What about using WebChart1.ID property?
Re: ASP .NET getchart?chart="X"; how to access X?
Posted: Sat Oct 30, 2010 7:50 pm
by 15657590
webchart.ID property always returns the same ID of the chart. What i am looking for is to have a dynamic id that are generated every time i create the chart.
Re: ASP .NET getchart?chart="X"; how to access X?
Posted: Thu Nov 04, 2010 3:31 pm
by Marc
Hello,
There is currently no property that will give you that id. The id is generated at the moment the Chart is created, after initial page_load has modified any settings for the Chart, and that id then forms part of the 'img src' information of the Chart on the page.
If you are to require the id after that moment on the client page (eg. via javascript) then you could use the request.querystring value for Chart itself. If you require that variable at any other moment or in serverside code then please let us know exactly how and we'll see if there is a way to supply that information. The Chart id consists of the ip address of the caller, the timestamp and the image format type.
Regards,
Marc Meumann