Not working Response.Redirect on Server

  1. #1

    Not working Response.Redirect on Server

    Attached Thumbnails ASP.PNG   Codebehind.PNG   Request failure.PNG  
    Last edited by Prybe; Feb 06, 2015 at 4:57 PM. Reason: Missing write the path of files .aspx
  2. #2
    Hello,

    You need to use DirectEventArgs in your DirectEvent handler, and not EventArgs.

    As well, when submitting to the forums, it really helps if you can piece together your sample into a simplified .aspx. Something we can test by copying the sample into our test project and not have to piece together your disconnected code sample.

    The following demonstrates the type of code sample that is most useful to us. Providing this type of complete and simplified code sample is going to get you a much faster and more detailed response from the support team.

    The sample also includes the DirectEventArgs fix.

    Example

    <%@ Page Language="C#" %>
    
    <script runat="server">
        // Ensure you using DirectEventArgs in the Event Handler
        protected void Button1_Click(object sender, DirectEventArgs e)
        {
            this.Response.Redirect("text.aspx");
        }
    </script>
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <ext:Button 
                runat="server" 
                Text="Submit" 
                OnDirectClick="Button1_Click" 
                />
        </form>
    </body>
    </html>
    Hope this helps.
    Geoffrey McGill
    Founder & CEO

Similar Threads

  1. [CLOSED] Response.redirect issue
    By ebeker in forum 3.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 23, 2015, 3:04 PM
  2. [CLOSED] MessageBusDirectEvents with Response.Redirect
    By ViDom in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 03, 2013, 10:18 AM
  3. login & response.redirect
    By svk in forum 1.x Help
    Replies: 2
    Last Post: Jan 17, 2013, 6:10 AM
  4. [CLOSED] Differences between X.Redirect and Response.Redirect
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 10, 2012, 4:29 PM
  5. problem with Response.Redirect
    By kiran malgi in forum 1.x Help
    Replies: 0
    Last Post: Mar 20, 2010, 2:42 AM

Tags for this Thread

Posting Permissions