Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Drawing a graph on a custom web control in ASP.Net 2.0 and c#

Posted on 2010-09-03
1
Medium Priority
?
582 Views
Last Modified: 2013-11-08
I have the need to design a web control whose job will be to draw a graph (using GDI+ functions) on its surface; looking on line I found a number of examples on how to draw on ASP.Net Web Forms (using either a stream in the page's response or saving the image onto a file and having an image control display that). These examples are however based on a Page object and offer very little explanation of how one can arrange the graphs position in relation with other controls on the form.

Is there a way for me to design a custom web control which will draw the graph on its surface? Can I access the control's surface?  An example would be greatly appreciated.

Thanks

Chris
0
Comment
Question by:CLoucas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 51

Accepted Solution

by:
Ted Bouskill earned 2000 total points
ID: 33602129
Not really.  Web applications aren't like a windows application where you have explicit control and access to the form.

All your rendering has to be controlled by the HTML elements which are then controlled using CSS.

You can explicitly control the CSS on the client however, you have to do all the work server side before sending the page to the client.

With AJAX or an IMG control that requests a page like this <img src='http://myserver/MyRenderingPage.aspx" /> you can return results without a full round trip but ultimately what you can do client side has to be completed using JavaScript or new tags like HTML 5, Flash or Java.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question