ASP .NET getchart?chart="X"; how to access X?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jagadish
Newbie
Newbie
Posts: 9
Joined: Fri Oct 22, 2010 12:00 am

ASP .NET getchart?chart="X"; how to access X?

Post by jagadish » Wed Oct 27, 2010 11:02 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: ASP .NET getchart?chart="X"; how to access X?

Post by Narcís » Thu Oct 28, 2010 10:11 am

Hi Jagadish,

What about using WebChart1.ID property?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

jagadish
Newbie
Newbie
Posts: 9
Joined: Fri Oct 22, 2010 12:00 am

Re: ASP .NET getchart?chart="X"; how to access X?

Post by jagadish » Sat Oct 30, 2010 7:50 pm

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.

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: ASP .NET getchart?chart="X"; how to access X?

Post by Marc » Thu Nov 04, 2010 3:31 pm

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
Steema Support

Post Reply