Page 1 of 1

Asp.net server side reference

Posted: Thu Jan 12, 2006 10:47 pm
by 9080215
Are there any examples or could you tell me how to refer to the TeeChart control from the server side code in an asp.net web form? I'm trying to fill the chart from an MS SQL Server table. Can I create a dataset server side and use it for the chart?

Any help will be greatly appreciated!

Thanks.

Posted: Mon Jan 16, 2006 8:41 am
by Pep
Hi,
Are there any examples or could you tell me how to refer to the TeeChart control from the server side code in an asp.net web form?
It must be added as an OBJECT into the aspx page. You can see one example of this I posted some time ago into the news://www.steema.net/steema.public.attachments newsgroup ( on 14th April 2005, with subject : "RE: Got serveral error msg with ASP.NET (ActiveX7.0) " ).
I'm trying to fill the chart from an MS SQL Server table. Can I create a dataset server side and use it for the chart?
Yes, you should be able to assign the dataset as DataSource like in the ADO example you can find at :
http://localhost/TeeChart7/ADOTeeChart7.asp
included with the TeeChart Pro installation.

Posted: Mon Jan 16, 2006 5:39 pm
by 9080215
I'm not sure what you're telling me about adding it as an object. As far as the HTML code is concerned the chart is being added in an object tag. However, when I try to refer to it from the server-side code in a aspx.vb codebehind page, it dosen't see it because it's a client-side activeX control.

I have something working from SQL Server using the Import.LoadFromURL() command going to an aspx page. However, what I still need to know how to do is send a datetime string entered into an asp Textbox to the .aspx page being called in the Import.LoadFromURL(). The datetime will determine what data is retrieved from the SQL Server table to be added to the chart.

Thanks,
Allen

Posted: Tue Jan 24, 2006 3:51 pm
by Pep
Hi Allen,

I'm sorry, I didn't put a correct answer, maybe I mix up with other. I've just post an asp.net example into the news://www.steema.com/steema.public.attachments newsgroup (with the same subject) which shows how to create the server object and send the results to the client.

Hope that it helps.

Posted: Thu Jan 26, 2006 8:13 pm
by 9080215
This is close to what I'm looking for except that I would like the actual live control to show in the web page so that the user can interact with it. The example that you posted only returns an image. Any other examples?

Thanks,
Allen

Posted: Thu Jan 26, 2006 8:16 pm
by 9080215
This is close to what I'm looking for except that I would like the actual live control to show in the web page so that the user can interact with it. The example that you posted only returns an image. Any other examples?

Thanks,
Allen

Posted: Mon Jan 30, 2006 8:24 am
by Pep
Hi Allen,
the example I posted shows both cases (referenced as an object of just showing an image). As you can see if you runt the example, the first Chart is returned as an image (png image), and the second Chart is a live Chart (which you can do a zoom, scroll, etc.. and interact with it)