[CLOSED] response.redirect not working in 3.1

  1. #1

    [CLOSED] response.redirect not working in 3.1

    Hello,

    I have server-side method being called from a button click, and I am trying to direct the user to a different page. But Response.Redirect is throwing the error dialogue box say "200 NORESPONSE". Below is the screen shot and code. I am using IE 11. and just downloaded Ext. 3.1 few days ago.

    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
    
    <html>
    <head id="Head1" runat="server">
    <script runat="server">
        protected void Button1_Click(object sender, DirectEventArgs e)
        {
            this.Response.Redirect("http://www.google.com");
        }
    </script>
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            
            <ext:Button ID="Button1" 
                runat="server" 
                Text="Submit" 
                OnDirectClick="Button1_Click" 
                />
        </form>
    </body>
    </html>
    Thank you!
    Last edited by Daniil; Mar 10, 2015 at 11:36 AM. Reason: [CLOSED]
  2. #2
    Hello @Fahd,

    Tried your example here using IE11 (11.0.9600.17631 update 11.0.16) and it worked just fine.

    Alternatively, you might be interested in using Ext.NET specific functionality, maybe it could address the specific issue you're having there.

    So, change your response.redirect line to this:
    X.Redirect("http://www.google.com");
    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    thank you! X.Redirect works but I do not why it did not work with Response.Redirect?? Response.Redirect worked up till Ext. 3.0
  4. #4
    Can you share with us your versions? VS, IE? Did you try the same on other browser as well? Really, I couldn't reproduce the issue at my side.

    AFAIK, Response.Redirect() also throws an exeption (caught), you could DEBUG > Exceptions within Visual Studio and check everything there. Then you probable could step thru what happens when you open the file, after the exception (if it is triggered at all).

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Hi,
    I am using, Visual Studio 2010 Version 10.0.40219.1 SP1Rel.
    Microsoft.Net Framework 4.5.5
    Broswers tested and failed: IE 11,Chrome Version 40.0.2214.115

    Thanks!
  6. #6
    Would you mind making some more tests on your side?

    If you make a pure ASP.NET project (without Ext.NET bindings and libraries), can you use Response.Redirect as expected?

    If you try the same with a simple ASP.NET only page on the project, does it also work?

    It breaks only when you add Ext.NET to the page?

    I have a feeling that this problem might not be bound to Ext.NET. I could be wrong, so your feedback is very anticipated. Again, I was not able to reproduce any problem here. But I am using lastest VS2013 as well. Depending on your results, I'll have additional tests here, and talk to my colleagues to see what might be broken.

    Hope to hear from you soon.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Not working Response.Redirect on Server
    By Prybe in forum 3.x Help
    Replies: 1
    Last Post: Feb 06, 2015, 6:51 PM
  2. [CLOSED] Response.redirect issue
    By ebeker in forum 3.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 23, 2015, 3:04 PM
  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

Posting Permissions