473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Aspx return system.drawing.image

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
Jul 19 '05 #1
2 2556
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" <Si****@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.com...
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

Jul 19 '05 #2
http://www.aspfaq.com/5002

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Silvia" <Si****@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.com...
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

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: news.microsoft.com | last post by:
Hello group, My goal is to attach an image over another image. Top image should be transparent so the back image is visible through the top one. Bellow is a test code in VB.NET. You need to...
11
by: Detlef Hüttenbach | last post by:
Whereas loading tiffs and pngs from file into an Image WebControl work, the images aren't shown when loaded from streams: In a WebForm, the image's property "ImageUrl" is set to a handler, and...
4
by: Yoavo | last post by:
Hi, I am writing a COM class in c# which needs to implement an interface which one of its methods declared in the following way: public stdole.IPicture GetBitmap() { } I have a bitmap...
5
by: Jerry J | last post by:
I want to use the System.Drawing.Image class. According to the help file, this is an abstract base class. Because it is supposedly abstract, I created another class that inherits from it. However,...
3
by: Dave Keen | last post by:
Hi all. Hope you can help me. This should be easy but I can't make this work. In brief I am building a page of thumbnails using images held in a SQLServer 2000 database. I do this by creating...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
3
by: computer_guy | last post by:
Hi Everyone, I run into a problem. I am trying to write an aspx that can dynamically generate an image based on some input parameters. Things are very simple if the size of the parameters is...
0
by: manjitsarma | last post by:
I need to display an image in 'Image Control' of aspx page.Now the image is displayed in the aspx page itself.But I need to display it in 'Image Control'.This is a map application and the image is...
3
by: =?Utf-8?B?R3VpbGxlcm1vIEppbWVuZXo=?= | last post by:
Hi.... Please help me with this case. I need to show an image .TIFF in a .aspx web page. The web site is developer on Visual Studio 2005. The image control no support this image format, that...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.