Aspx return system.drawing.image

S

Silvia

Hi,

I have aspx page, and this page go to another aspx i have that this second aspx return a image, how the first page can received the object system.drawing.image.

My code is that:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Response.Buffer = True
Dim lImage As System.Drawing.Image
lImage.FromFile(Request("Path"))
Response.End()
End Sub

It's OK???

And how I can view the image in the first page??

Thanks

Silvia
 
J

James Baker

If you're doing it in page_load, why can't you just call it from Page1 and
avoid Page 2 entirely? You'll get a lot better response in a .NET newsgroup
like: microsoft.public.dotnet.framework.aspnet

James

Silvia said:
Hi,

I have aspx page, and this page go to another aspx i have that this second
aspx return a image, how the first page can received the object
system.drawing.image.
My code is that:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top