Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Toolbar > BACK Button Functionality
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered BACK Button Functionality

Feed from this thread
  • Mani PC avatar

    Posted on Jan 29, 2010 (permalink)

    Hello Experts,
    I am using RAD tool bar on my ASP.Net Web page.

    I have BACK button on the toolbar,  on click which should take to previous page. the data of previous page should be shown when we go back to the page.

    i know whe need to use 

    javascript:history.go(-1)

    some cases the above statement throws me an error, if it could not find the prevoius page.

    can someone suggest me the best approch?

    thanks

  • Mani PC avatar

    Posted on Jan 29, 2010 (permalink)

    also i am trying to do it inside if not page post back on my code behind:

    rtbDocumentList.FindItemByText("Back").Attributes.Add("TabClick", "javascript:history.go(-1);")


     it is not working? what is the right syntax?

  • Posted on Feb 1, 2010 (permalink)

    Hello Mani PC,

    You can attach 'OnClientButtonClicked' event to RadToolBar and check for the clicked button whether it is 'Back' button to redirect to previous page.

    Client Code:
     
        function OnClientButtonClicked(sender, args) { 
            if (args.get_item().get_text() == 'Back') { 
                javascript: history.go(-1); 
            } 
        } 

    -Shinu.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Toolbar > BACK Button Functionality