locked
Photo of the Day RRS feed

  • Question

  • User-120032027 posted

     Hello All,

     I just uploaded the PWS to my webserver. Everything seems to work fine.

    However, the 'Photo of the Day" section does not showup on the Default.aspx page - in either logged in or Logged out mode. 

    Can anyone give me some guidence here an how I get this to appear?

     

    Many Thanks!

     

    Sunday, September 21, 2008 2:27 PM

All replies

  • User-425639139 posted

     How do you fetch Photo Of the Day?

    Monday, September 22, 2008 12:57 AM
  • User-120032027 posted

     Hi Ankit.sri,

    Thank you for your response!

    I will tell you up front that I'm new to ASP.Net so all I did here was follow the documentation on deploying this web site. I'm learning as I go.

    Below is the section of code for the 'Photo of the Day' in the Defaulat.aspx page.

    Thanks again!

     

    <asp:formview id="FormView1" runat="server" datasourceid="ObjectDataSource1" 
    ondatabound="Randomize" cellpadding="0" borderwidth="0px">
    <ItemTemplate>
    <h4>Photo of the Day</h4>
    <table border="0" cellpadding="0" cellspacing="0" class="photo-frame">
    <tr>
    <td class="topx--"></td>
    <td class="top-x-"></td>
    <td class="top--x"></td>
    </tr>
    <tr>
    <td class="midx--"></td>
    <td><a href='Details.aspx?AlbumID=<%# Eval("AlbumID") %>&Page=<%# Container.DataItemIndex %>'>
    <img src="Handler.ashx?PhotoID=<%# Eval("PhotoID") %>&Size=M" class="photo_198" style="border:4px solid white" alt='Photo Number <%# Eval("PhotoID") %>' /></a></td>
    <td class="mid--x"></td>
    </tr>
    <tr>
    <td class="botx--"></td>
    <td class="bot-x-"></td>
    <td class="bot--x"></td>
    </tr>
    </table>
    <p>Screenshots that show-off some of the new Web developement features in VS 2008</p>
    <p><a href='Download.aspx?AlbumID=<%# Eval("AlbumID") %>&Page=<%# Container.DataItemIndex %>'>
    <asp:image runat="Server" id="DownloadButton" AlternateText="download photo" skinid="download"/></a></p>
    <p>See <a href="Albums.aspx">more photos </a></p>
    <hr />
    </ItemTemplate>
    </asp:formview>
      
    Monday, September 22, 2008 7:24 AM