Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Ajax / Redirect


  • RadAjax supports redirecting the user to a new page on the server during an AJAX request.

    Frame page code is shown below:


        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="400px" Width="300px"
            Style="text-align: left;">
            <telerik:RadToolBar ID="RadToolBar1" runat="server" Orientation="Horizontal" Style="padding: 5px 0 0 5px;">
                <Items>
                    <telerik:RadToolBarButton Text="Silverlight" NavigateUrl="http://www.silverlight.net" />
                    <telerik:RadToolBarButton IsSeparator="true" />
                    <telerik:RadToolBarButton Text="Windows Phone" NavigateUrl="http://www.microsoft.com/windowsphone" />
                    <telerik:RadToolBarButton IsSeparator="true" />
                    <telerik:RadToolBarButton Text="WindowsClient.NET" NavigateUrl="http://windowsclient.net" />
                    <telerik:RadToolBarButton IsSeparator="true" />
                    <telerik:RadToolBarButton Text="ASP.NET" NavigateUrl="http://www.asp.net" />
                </Items>
            </telerik:RadToolBar>
        </telerik:RadAjaxPanel>

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Register TagPrefix="telerik" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <%@ Register TagPrefix="telerik" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="telerik" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

    <%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="Telerik.AJAXExamplesCSharp.AJAX.Examples.Functionality.Redirect.DefaultCS" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <telerik:HeadTag ID="Headtag1" runat="server"></telerik:HeadTag>
    </head>
    <body class="BODY">
        <form id="mainForm" method="post" runat="server">
        <telerik:Header ID="Header1" runat="server" NavigationLanguage="CS" XhtmlCompliant="true"
            XhtmlVersion="1.0"></telerik:Header>
        <!-- content start -->
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%">
            <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Width="100%">
                <telerik:RadPane ID="RadPane1" runat="server" Height="33px" BackColor="#383B42">
                    <div style="padding: 5px">
                        <telerik:RadButton ID="btnGroup1" runat="server" Text="Microsoft sites" OnClick="btnGroup1_Click" />
                        <telerik:RadButton ID="btnGroup2" runat="server" Text="Telerik sites" OnClick="btnGroup2_Click" />
                    </div>
                </telerik:RadPane>
                <telerik:RadSplitBar ID="RadSplitBar1" runat="server" />
                <telerik:RadPane ID="RadPane2" runat="server" Scrolling="None">
                </telerik:RadPane>
            </telerik:RadSplitter>
        </telerik:RadAjaxPanel>
        <!-- content end -->
        <telerik:Footer ID="Footer1" runat="server"></telerik:Footer>
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451