Solved

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

Posted on 2010-09-03
1
581 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 500 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

635 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