473,387 Members | 1,925 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,387 software developers and data experts.

Displaying image from resource in aspx page

Hi,

I have 2 questions:

1) I have read the articles on how to embedd and image in a resource
file. I have also read the articles on how to open it from the
resource file and put it in a stream and display it in the
application.

However, what if the app is a Web app? How do I open an embedded
resource bitmap, and display it as an <image> on a web page(aspx)?

2) Also, I want to embedd an aspx page into my resource file and have
it load when the user clicks a button on the form of another aspx
page. So when the button is clicked it takes the page out of the
resource file and displays it in the browser. Is this doable?
Thank in advance,
Pete
Jul 19 '05 #1
1 3122
"peter" <cw****@megsinet.net> wrote
1) I have read the articles on how to embedd and image in a resource
file. I have also read the articles on how to open it from the
resource file and put it in a stream and display it in the
application.

However, what if the app is a Web app? How do I open an embedded
resource bitmap, and display it as an <image> on a web page(aspx)?

Peter,
Check out this link
http://samples.gotdotnet.com/quickst...urcefiles.aspx

2) Also, I want to embedd an aspx page into my resource file and have
it load when the user clicks a button on the form of another aspx
page. So when the button is clicked it takes the page out of the
resource file and displays it in the browser. Is this doable?


Not sure, never tried it... ;-)

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com
Jul 19 '05 #2

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

Similar topics

7
by: Vinay | last post by:
Hi All: I have a small application that stores images either in the database or as files (depending on the user preference). I'm in the process of providing a web interface to this application....
1
by: BluDog | last post by:
Hi I have a class that has a System.Drawing.Image as a property, i would like to display this image on my WebForm, however i think i need to get it into a System.Web.UI.WebControls.Image object,...
7
by: Jim | last post by:
I am trying to display images that are stored in a database, and I am using a repeater control. What I still use the Response.BinaryWrite method with a binding expression, if so, what with the...
3
by: Irfan Akram | last post by:
Hi Guys, I am having problems displaying an image from the database, that alreday has been uoploaded successfully. The image loads in correctly, but by default it is displayed on the whole...
2
by: Dr. Paul Caesar - CoullByte (UK) Limited | last post by:
Hi all, I created an assembly that is shared by all our websites and cotains many images used throughout. I know how to access the resource, but how do I get the Bitmap to display in the IMG...
1
by: peter | last post by:
Hi, I have 2 questions: 1) I have read the articles on how to embedd and image in a resource file. I have also read the articles on how to open it from the resource file and put it in a...
10
by: Mirek Endys | last post by:
Is there a posibility to make web control, that is drawing an image to webpage without needing to save it into a file? (for example, i will save picture into db server and I want to show it...
7
by: hsegoy1979 | last post by:
Dear All Iam using file upload control and i want to display image in another pop up page .But image is not displaying in image control iam sending image path thru querystring . here is my code ...
6
by: Jeff | last post by:
hi asp.net 2.0 I have a image (.jpeg) stored in sql server 2005 and now I want to display it on a webpage. So I created a webpage (Image.aspx) which just writes the buffer data to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.