Use Response.Redirect on SelectedTabChange

2 posts, 0 answers
  1. PJ Rodriguez
    PJ  Rodriguez avatar
    37 posts
    Member since:
    Feb 2005

    Posted 23 Mar 2012 Link to this post

    I have a ribbonbar in a masterpage. What I want to accomplish is to perform a response.redirect("urlhere") when the end user clicks on a tab. I am trying to accomplish this by using the following code below:
    Private Sub rrbMain_SelectedTabChange(sender As Object, e As Telerik.Web.UI.RibbonBarSelectedTabChangeEventArgs) Handles rrbMain.SelectedTabChange
        Select Case e.Tab.Text
            Case "Tab1"
                Response.Redirect("~/tab1.aspx")
            Case "Tab2"
                Response.Redirect("~/tab2.aspx")
        End Select
    End Sub

    Unfortunately, that does not work. Clicking on a tab does not perform any redirection. Your help is appreciated. Thanks.



  2. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 26 Mar 2012 Link to this post

    Hello,

    I've tested your scenario, but it seems to work fine on my end. Please review the attached pages and see if they work on your side as well.
     
    Kind regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top