This is a migrated thread and some comments may be shown as answers.

Back button

1 Answer 65 Views
Menu
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 17 Feb 2010, 03:56 AM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Feb 2010, 06:43 AM
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.
Tags
Menu
Asked by
L
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or