Ask a Question related to ASP.NET General, Design and Development.
-
Vyas Bharghava #1
Rendering on to Page object
Hi all,
I have written a server-side component that renders some
charts as images. I want to give the charting classes
(Pie, Bar etc.) the ability to render themselves onto any
active page object. I envisage my users calling my
component from Aspx pages like:
Pie pie = new Pie(configXml);
Pie.Render(this);
The below code
renderer.aspx
-------------
......Page_Load()...
Pie pie = new Pie(configXml);
Response.ContentType = "image/png";
Response.BinaryWrite(pie.GetChartImage());
Response.End();
when used as an image source:
show.aspx
---------
<img src="renderer.aspx" />
works fine. But I want to do the above from within my
component. I can't use the same mechanism as that would
mean changing the content-type, which is not the behavior
I want.
I can embed an aspx file inside my component and extract
it at runtime and even make it call a code-behind page
class inside my component. But I'm unable to figure out
how this mechanism could be hooked to what I want.
Please help.
Regards,
Vyas
Vyas Bharghava Guest
-
Dynamic content and page rendering
Hi there, got a bit of a problem that's not easy to explain. I've got a site written in classic .asp, with bits and bobs of JavaScript, including... -
error - object uses relative colorimetric rendering intent
Could someone help, I work at a company and often receive pdf files (originally created in illustrator) which when I check to preflight using a beta... -
Rendering an UserControl inside a mail body without any page object reference
Hi I would like to use a User Control to render the body of the mail I send. I know how to do that using Page.LoadControl The problem is that my... -
RENDERING 3D OBJECT OUTLINE
hello, I would like to know how to render an imported 3D object in Outline, the effect I would like to achieve is that of seeing only the line... -
rendering a webpage within an ASP page
I want to write a simple ASP.NET page that displays outlook web acces in an iframe element and I want to construct the source attrbute of the... -
Alvin Bruney #2
Re: Rendering on to Page object
You will need to include a page holder control in your pie, bar chart pages.
Then you can easily render to the placeholder image.
"Vyas Bharghava" <vyas_b@yahoo.com> wrote in message
news:051a01c3504b$b1916150$a001280a@phx.gbl...> Hi all,
>
> I have written a server-side component that renders some
> charts as images. I want to give the charting classes
> (Pie, Bar etc.) the ability to render themselves onto any
> active page object. I envisage my users calling my
> component from Aspx pages like:
>
> Pie pie = new Pie(configXml);
> Pie.Render(this);
>
> The below code
>
> renderer.aspx
> -------------
> .....Page_Load()...
> Pie pie = new Pie(configXml);
> Response.ContentType = "image/png";
> Response.BinaryWrite(pie.GetChartImage());
> Response.End();
>
> when used as an image source:
>
> show.aspx
> ---------
> <img src="renderer.aspx" />
>
> works fine. But I want to do the above from within my
> component. I can't use the same mechanism as that would
> mean changing the content-type, which is not the behavior
> I want.
>
> I can embed an aspx file inside my component and extract
> it at runtime and even make it call a code-behind page
> class inside my component. But I'm unable to figure out
> how this mechanism could be hooked to what I want.
>
> Please help.
>
> Regards,
>
> Vyas
Alvin Bruney Guest
-
Kevin Spencer #3
Re: Rendering on to Page object
In a webv page, embedded images are requested individually as the tags are
parsed by the browser. You can't put anything INTO a web page other than
text.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of little things.
"Vyas Bharghava" <vyas_b@yahoo.com> wrote in message
news:051a01c3504b$b1916150$a001280a@phx.gbl...> Hi all,
>
> I have written a server-side component that renders some
> charts as images. I want to give the charting classes
> (Pie, Bar etc.) the ability to render themselves onto any
> active page object. I envisage my users calling my
> component from Aspx pages like:
>
> Pie pie = new Pie(configXml);
> Pie.Render(this);
>
> The below code
>
> renderer.aspx
> -------------
> .....Page_Load()...
> Pie pie = new Pie(configXml);
> Response.ContentType = "image/png";
> Response.BinaryWrite(pie.GetChartImage());
> Response.End();
>
> when used as an image source:
>
> show.aspx
> ---------
> <img src="renderer.aspx" />
>
> works fine. But I want to do the above from within my
> component. I can't use the same mechanism as that would
> mean changing the content-type, which is not the behavior
> I want.
>
> I can embed an aspx file inside my component and extract
> it at runtime and even make it call a code-behind page
> class inside my component. But I'm unable to figure out
> how this mechanism could be hooked to what I want.
>
> Please help.
>
> Regards,
>
> Vyas
Kevin Spencer Guest



Reply With Quote

