PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 1.00 average.

Dynamic ASPX Image Output for static ...xxx.jpg URL

 
 
Alex Maghen
Guest
Posts: n/a
 
      17th Jun 2010
I have a URL static URL that's being hit all the time:
"http://xyz.com/image.jpg". I want instead to put an ASPX file in that will
either output a dynamic JPEG itself or at least do a redirect to the JPEG I
want.

How can I create a configuration that will "replace"
"http://xyz.com/image.jpg" with an ASPX? And I want to do this somehow INSIDE
the VS.NET Web Project and not in an IIS config because I want it to actually
work when I debug it through the VS IDE.

Thanks for your help.

Alex
 
Reply With Quote
 
 
 
 
behdad
Guest
Posts: n/a
 
      18th Jun 2010
On Jun 17, 11:47*am, Alex Maghen <AlexMag...@newsgroup.nospam> wrote:
> I have a URL static URL that's being hit all the time:
> "http://xyz.com/image.jpg". I want instead to put an ASPX file in that will
> either output a dynamic JPEG itself or at least do a redirect to the JPEGI
> want.
>
> How can I create a configuration that will "replace"
> "http://xyz.com/image.jpg" with an ASPX? And I want to do this somehow INSIDE
> the VS.NET Web Project and not in an IIS config because I want it to actually
> work when I debug it through the VS IDE.
>
> Thanks for your help.
>
> Alex

You can use HttpHandler this might help:
http://www.hanselman.com/blog/ASPNET...etsEasier.aspx
 
Reply With Quote
 
3P
Guest
Posts: n/a
 
      20th Jun 2010
Dnia 17-06-2010 o 17:47:56 Alex Maghen <(E-Mail Removed)>
napisał(a):

> I have a URL static URL that's being hit all the time:
> "http://xyz.com/image.jpg". I want instead to put an ASPX file in that
> will
> either output a dynamic JPEG itself or at least do a redirect to the
> JPEG I
> want.
>
> How can I create a configuration that will "replace"
> "http://xyz.com/image.jpg" with an ASPX? And I want to do this somehow
> INSIDE
> the VS.NET Web Project and not in an IIS config because I want it to
> actually
> work when I debug it through the VS IDE.
>
> Thanks for your help.
>
> Alex


You can insert
<img src="YourASPXPageReturningJpeg.aspx?parametersIfYouLike"/>
 
Reply With Quote
 
3P
Guest
Posts: n/a
 
      22nd Jun 2010
Dnia 21-06-2010 o 15:25:26 Russell <(E-Mail Removed)> napisał(a):

> On Jun 17, 11:47 am, Alex Maghen <AlexMag...@newsgroup.nospam> wrote:
>> I have a URL static URL that's being hit all the time:
>> "http://xyz.com/image.jpg". I want instead to put an ASPX file in that
>> will
>> either output a dynamic JPEG itself or at least do a redirect to the
>> JPEG I
>> want.
>>
>> How can I create a configuration that will "replace"
>> "http://xyz.com/image.jpg" with an ASPX? And I want to do this somehow
>> INSIDE
>> the VS.NET Web Project and not in an IIS config because I want it to
>> actually
>> work when I debug it through the VS IDE.
>>
>> Thanks for your help.
>>
>> Alex

>
> This is what ASHX handlers are for. You can map them to paths with an
> httpHandler mapping in your web config.
>
> <httpHandlers>
> <add verb="*" path="[whatever]" validate="true"
> type="[class,assembly]"/>
> </httpHandlers>


Yes You are right. Ashx handlers are better because they don't have
unnecessary page life cycle.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static S-Video Image Output jflash Computer Hardware 1 3rd Sep 2007 03:31 AM
static html vs dynamic aspx steven Microsoft Dot NET 2 8th Jul 2007 03:51 PM
How do I get from dynamic aspx to static html Rich S Microsoft ASP .NET 5 19th Jan 2006 03:22 AM
using .aspx page to output image problem Holly Microsoft ASP .NET 1 27th Aug 2004 11:51 PM
Dynamic image in aspx =?Utf-8?B?QW5kcmVzIFJvbWVybw==?= Microsoft C# .NET 1 18th May 2004 07:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:13 PM.