Back button

2 posts, 0 answers
  1. L
    L avatar
    298 posts
    Member since:
    Apr 2008

    Posted 16 Feb 2010 Link to this post

    hi

    I have a Radmenu in a master page. In this menu, there is an item name "Back"

    I want to be able to go back to previous page when users click on the Back menu item.  

    How should i go about it? Thanks a lot
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 17 Feb 2010 Link to this post

    Hi,

    Attach OnClientItemClicked event to RadMenu and check for the clicked item text. then use the  history.back(); method in order to redirect to previous page.

    Client Side:
     
    <script type="text/javascript"
        function OnClientItemClicked(sender, args) { 
            if (args.get_item().get_text() == "Back") { // Checking the text of RadMenu item 
                history.back();  // Redirect to previous page 
            }       
        } 
    </script> 

    -Shinu.
Back to Top