Problem in PhotoDisplay.ashx

Last post 05-19-2008 5:01 AM by dhaneel. 4 replies.

Sort Posts:

  • Problem in PhotoDisplay.ashx

    05-16-2008, 11:46 PM
    • Loading...
    • dhaneel
    • Joined on 05-14-2008, 4:42 AM
    • Posts 7

     Hi.. In my domain hosting site PhotoDisplay.ashx is not working... and while displaying photos we have all references to PhotoDisplay.ashx as

    <asp:LinkButton ID="AdPhotoImageButton" runat="Server" CommandName="ShowFullSize"
                                    CommandArgument='<%# Eval("Id") %>' CausesValidation="False"><img alt="Enlarge Photo" src='<%# Eval("Id", "PhotoDisplay.ashx?photoid={0}&size=medium") %>' style="border:0;" /></asp:LinkButton></p>
                

    So photos are not getting displayed...

     And when i try to execute it separately it displays me entire code.. Means its not recognising it as asp.net file and not doing processing..

    http://www.nestforme.com/PhotoDisplay.ashx

     

    Can anyone tell me how i can convert this http://www.nestforme.com/PhotoDisplay.ashx to something aspx so that i can make this work?


     

  • Re: Problem in PhotoDisplay.ashx

    05-17-2008, 4:23 AM
    • Loading...
    • manorfarm
    • Joined on 02-21-2008, 10:45 PM
    • Posts 39

    Hi The only place I can find code like you have shown is in ShowAd.aspx

    My site is set up to store photoes in the Upload file not in the database but the code in my showad.aspx reads

    <ItemTemplate>

    <p>

    <asp:LinkButton ID="AdPhotoImageButton" runat="Server" CommandName="ShowFullSize"

    CommandArgument='<%# Eval("Id") %>'><img alt="Item Photo" src='<%# Eval("Id", "PhotoDisplay.ashx?photoid={0}&size=medium") %>' style="border:0;" /></asp:LinkButton></p>

    </ItemTemplate>

    You can see they are different - you could try using this code as an experiment - if we are talking about showad.aspx - causes validation = false may not need to be there

  • Re: Problem in PhotoDisplay.ashx

    05-17-2008, 6:31 AM
    • Loading...
    • dhaneel
    • Joined on 05-14-2008, 4:42 AM
    • Posts 7

    Actually its not problem with showad.aspx.. i just shown the call to "photodisplay.ashx" from showad.aspx.. Yeah i tried removing causesvalidation still no success.. Is there way to add 

     

    <%# Eval("Id", "PhotoDisplay.aspx?photoid={0}&size=medium" instead of calling .ashx ? U can see my ashx file from http://www.nestforme.com/PhotoDisplay.ashx

     

    thanks...
     

  • Re: Problem in PhotoDisplay.ashx

    05-17-2008, 10:42 AM
    • Loading...
    • ashmetry
    • Joined on 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    IIS is proabably not recognizing ashx as an ASP.NET extension. If you have access to IIS you can add that. Or you can simply rename the file extension from ashx to aspx and see if that works.

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: Problem in PhotoDisplay.ashx

    05-19-2008, 5:01 AM
    • Loading...
    • dhaneel
    • Joined on 05-14-2008, 4:42 AM
    • Posts 7

     The hosting provider say.. They dont support ashx file extension.. So i need to replace this photodisplay.ashx with aspx code.. can someone pls explain me how to go about i?

Page 1 of 1 (5 items)