I have a panel in my test.aspx form. I have placed some controls in this panel. I have a button bellow the Panel on click of which i want to convert this Panel to Image in jpeg format, which will be saved in my server disk , so that i can upload this image
to database. I don't want image of full html page , i just wnat only Panel and controls placed in panel.
place ur panel in a div, and try to render only the div content, so that u can retrive only the controls which are inside the div , instead of the whole page
If you win, you need not have to explain...If you lose, you should not be there to explain!
GireeshPainu...
Member
66 Points
17 Posts
How to generate image of any aspx control
Jul 13, 2011 12:27 PM|LINK
Hi friends,
I have a panel in my test.aspx form. I have placed some controls in this panel. I have a button bellow the Panel on click of which i want to convert this Panel to Image in jpeg format, which will be saved in my server disk , so that i can upload this image to database. I don't want image of full html page , i just wnat only Panel and controls placed in panel.
how can i do this.
Thanks & Regards
Gireesh painuly
shree_ars
Participant
1395 Points
776 Posts
Re: How to generate image of any aspx control
Jul 13, 2011 12:33 PM|LINK
place ur panel in a div, and try to render only the div content, so that u can retrive only the controls which are inside the div , instead of the whole page
GireeshPainu...
Member
66 Points
17 Posts
Re: How to generate image of any aspx control
Jul 13, 2011 12:40 PM|LINK
hi shree_ars, how to render only div content, actually i need to generate an image file with .jpeg.
Regards
Gireesh
shree_ars
Participant
1395 Points
776 Posts
Re: How to generate image of any aspx control
Jul 13, 2011 12:54 PM|LINK
u can able to get the content of div through javascript.
google it for div content print in javascript