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

Use Response.Redirect on SelectedTabChange

1 Answer 45 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
PJ Rodriguez
Top achievements
Rank 1
PJ Rodriguez asked on 23 Mar 2012, 10:21 PM
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.



1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 26 Mar 2012, 08:40 AM
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.
Tags
RibbonBar
Asked by
PJ Rodriguez
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or