Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kristina 33 posts 49 karma points
    Apr 16, 2013 @ 13:23
    Kristina
    0

    Next and previous link in gallery

    Hello!

    In my gallery I show every image in a colorbox. Now I want to make a navigation - add a next button if it isn't the last image and add a previous button if it isn't the first image.

    I've tried like this: 

    if (@Model.Previous(!= null{
        <href='/galerien/[email protected]().Id'>previous</a>
    }

    It works but the first image isn't shown, it shows the error 'Cannot perform runtime binding on a null reference'

    How can I make it work?

    Regards,

    Kristina

Please Sign in or register to post replies

Write your reply to:

Draft