Creating Graphs in c# web forms

  • Thread starter Thread starter Coskun Cavusoglu
  • Start date Start date
C

Coskun Cavusoglu

Hi I need to build something that works like the following example
http://www.realestateabc.com/calc_v22/calculator.html

How can can I do this by using c# and web forms. It will be a part of a web
based project so it has to work on the web. And the important is as the user
slides the control the graph will change itself. How can I get c# to draw a
graph on a website depending on the slide controls postion.

thanks
coskunc
 
Hi Coskun,

Well the example that you gave is not the best one :) , you see an applet
is like a program running on the browser, the equivalent would be an activeX
( this is just a simplification ) with a web app is VERY much difficult
render such a complex interface, it's doable but with a lot more of work, if
what you need is generate graph onfly you better get a third party tool, do
a google search ( I did this one
http://www.google.com/search?hl=en&lr=lang_en|lang_es&ie=UTF-8&oe=UTF-8&q=graph+c# )

Hope this help,
 
I question your requirements: "How can can I do this by using c# and
web forms" Remember to pick your technology based on how it addresses
the problem at hand, and C# wouldn't be my answer for interactive
animation on web pages.

You probably want something that can run client side (otherwise, every
move of a slider would require a round-trip to your webserver to
create a new graph). It's possible to make the graphs (using GDI+) on
the server, but it will be slower than molasses and not scalable since
every user will be requiring a ton of server resources for all these
graphs.

It's also possible to make C# applets that run on the browser (google:
c# applet), but that's only practical if it's on an intranet and you
know everybody's using IE6 & has .NET runtime installed.

Normal client-side programming would be in either JavaScript (google:
graph javascript), or possibly Macromedia Flash with ActionScript (
here's an article:
http://www.4guysfromrolla.com/webtech/111302-1.shtml).

Good luck!
mike


Ignacio Machin said:
Hi Coskun,

Well the example that you gave is not the best one :) , you see an applet
is like a program running on the browser, the equivalent would be an activeX
( this is just a simplification ) with a web app is VERY much difficult
render such a complex interface, it's doable but with a lot more of work, if
what you need is generate graph onfly you better get a third party tool, do
a google search ( I did this one
http://www.google.com/search?hl=en&lr=lang_en|lang_es&ie=UTF-8&oe=UTF-8&q=graph+c# )
 
As it has already been said, you can never accomplish that page in C#...

However, I have experience (and highly recommend) .Net Charting from Dundas
Software. ( http://www.dundas.com ) It won't do real-time updates like
that page, but it generates BEAUTIFUL static graphs...
 
Thank you but it has to be real time. So thats why I cant use those chart
generating components. I'll have to look into activex and try to do it
somehow thank you..
 
Back
Top