Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 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