Redirect to another page?

  1. #1

    Redirect to another page?

    This is such a simple question I'm embarassed to ask it..

    I have a ToolBar, with a Menu. I want to add menuitem that just redirects to another URL. How can I do this? Here's my markup:

    <ext:MenuItem Text="Administration" Icon="Wrench">
    	<DirectEvents>
    		<Click Url="/Admin/Index" />
    	</DirectEvents>
    </ext:MenuItem>
    I can see that Admin/Index is loaded, but its done via an ajax call....

    Thanks
  2. #2

    More info...

    Firebug tells me that a request is made to:

    http://local.myapp.com/Admin/?_dc=12...=1292595870663

    Which results in a response of:

    {script:"MainContent_ctl02.setDisabled(false);Main Content_ctl04.setDisabled(true);Button1.setText(\" admin\");"}

    Please can someone help? I can browse to the URL no if I enter the URL into my address bar
  3. #3
    Hi,

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!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 runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:Button runat="server" Text="Menu">
            <Menu>
                <ext:Menu runat="server">
                    <Items>
                        <ext:MenuItem Text="google.com" Href="http://google.com" />
                        <ext:MenuItem Text="ext.net" Href="http://ext.net" HrefTarget="_blank" />
                    </Items>
                </ext:Menu>
            </Menu>
        </ext:Button>
        </form>
    </body>
    </html>
  4. #4
    Url of DirectEvent is a target to send an ajax request.

Similar Threads

  1. how to redirect page from tab 2 to tab 1
    By Fabrizio in forum 1.x Help
    Replies: 1
    Last Post: Dec 07, 2011, 8:47 AM
  2. Replies: 1
    Last Post: Aug 12, 2011, 1:35 PM
  3. In Ajaxmethod how do i redirect to next page
    By Nagaraju in forum 1.x Help
    Replies: 2
    Last Post: May 20, 2011, 4:25 AM
  4. [CLOSED] Not able to redirect a page in AjaxMethod
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 25, 2009, 4:16 AM
  5. Replies: 0
    Last Post: Jun 12, 2009, 2:51 PM

Posting Permissions