Displaying image from resource in aspx page

  • Thread starter Thread starter peter
  • Start date Start date
P

peter

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
 
peter said:
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/quickstart/aspplus/doc/resourcefiles.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
 

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

Back
Top