[CLOSED] error when redirecting to another page

  1. #1

    [CLOSED] error when redirecting to another page

    When I try to redirect to a different page (for example after logging out) if I have a FileUploadField in the page I always get a BADRESPONSE error. This works in any other page but not in the ones that contain file uploads.

    see example:
    <%@ Page Language="C#"  %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http:www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
        
        <script runat="server">
            protected void Page_Load(object sender, EventArgs e)
            {
            }
    
            protected void LogoutClick(object sender, Coolite.Ext.Web.AjaxEventArgs e)
            {
                Session.RemoveAll();
                Response.Redirect("Default.aspx");
            }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ScriptManager ID="ScriptManager1" runat="server">
            </ext:ScriptManager>
            
            <ext:Button runat="server" ID="btnLogout" Text="Logout">
                <AjaxEvents>
                    <Click OnEvent="LogoutClick">
                    </Click>
                </AjaxEvents>
            </ext:Button>
            
            <ext:Panel runat="server">
                <Body>
                    <ext:FileUploadField ID="uplTextFile" runat="server" Icon="PageAdd" />
                </Body>
            </ext:Panel>
    
    
        </form>
    </body>
    </html>
  2. #2

    RE: [CLOSED] error when redirecting to another page

    Hi,

    Thanks for pointing out the bug. We are working on it. You can use the following work-around instead Response.Redirect
    ScriptManager1.AddScript("window.location='{0}';", url);
  3. #3

    RE: [CLOSED] error when redirecting to another page

    Hi,

    Fixed. Please update from SVN
  4. #4

    RE: [CLOSED] error when redirecting to another page

    Response.redirect fails if webpage is having Fileupload Control.

Similar Threads

  1. [CLOSED] Demo page error
    By bakardi in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 24, 2011, 3:43 PM
  2. Replies: 1
    Last Post: Jul 01, 2010, 7:09 AM
  3. Replies: 2
    Last Post: Dec 15, 2009, 2:54 PM
  4. Replies: 0
    Last Post: Jun 09, 2009, 4:25 AM
  5. [CLOSED] Get error in every page after SVN update
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: May 27, 2009, 2:47 AM

Posting Permissions