Pictures 2

  • Thread starter Thread starter GTi
  • Start date Start date
G

GTi

Q2:
I have a control created in a Web Control Library.
This control have a picture that I create in-memory:
This is done at this link:
http://www.aspheute.com/english/20000728.asp

But how can I refer to a page that is not in my main project, but only i my
Web Control Library ?


Q3:
Where (class) can I find information about the URL where the page is located
(domain name+port+page)
and where on the pages is physical located?
 
GTi said:
Q2:
I have a control created in a Web Control Library.
This control have a picture that I create in-memory:
This is done at this link:
http://www.aspheute.com/english/20000728.asp

But how can I refer to a page that is not in my main project, but
only i my Web Control Library ?


Q3:
Where (class) can I find information about the URL where the page is
located (domain name+port+page)
and where on the pages is physical located?

You can't access some class in a library by a URL. You could however
create an HttpHandler, where you have specific request served by a
specific class (instead of a physical aspx page):

a) write the class, which should implement System.Web.IHttpHandler

b) in web.config, add below <system.web>:
<httpHandlers>
<add verb="GET" path="image.ashx" type="<classname>, <assemblyname>" />
</httpHandlers >
where of course you replace <classname> and <assemblyname> with the correct values.

Hans Kesting
 

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