.ashx delivering pdf in tabpanel problem

  1. #1

    .ashx delivering pdf in tabpanel problem

    Hi

    I copied the add tabs example where you load an external page in a tab.

    I then created an ashx page which returns a PDF stream:
     
    public void ProcessRequest(HttpContext context)
        {
          context.Response.ContentType = "application/pdf";
          context.Response.AddHeader("content-disposition", "inline; filename=test.pdf");
          context.Response.WriteFile(@"c:\a\1.pdf");
          context.Response.End();
        }
    IF I run the example in chrome I get the PDf as expected:
    Click image for larger version. 

Name:	1.png 
Views:	106 
Size:	53.3 KB 
ID:	24422

    When i run it in Edge, it does not stop showing the loading mask:
    Click image for larger version. 

Name:	2.png 
Views:	109 
Size:	29.1 KB 
ID:	24423

    If I run the ashx independently in Edge it works
    I'm not sure if it is an EXT.NET, coding or Edge issue.
  2. #2
    The "loaded" even that the Mask is waiting likely not fired, or not fired in the way Mask is expecting. Should be an easy fix.

    We will investigate and fix for the next release, Ext.Net.4.0.0-beta1.
    Geoffrey McGill
    Founder
  3. #3
    Hello, this really looks like a browser-related issue.

    Geoffrey found this link: https://connect.microsoft.com/IE/fee...-pdf-in-iframe

    Although the latest feedback is that they couldn't reproduce the issue, it might mean either they fixed it on a still to-be-released update or just the test case they provided was only actual for IE11. Nevertheless, this seems to be an issue coming for a resonable time and not being fixed on IE11 at least.

    I believe a good solution to have PDF being displayed in a cross-browser approach would be using a specialized rendering JavaScript library, as suggested in this post.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. TextField RemoteValidation with ashx
    By alucardg in forum 2.x Help
    Replies: 3
    Last Post: Oct 22, 2014, 11:25 AM
  2. [CLOSED] GridPanel loading from ASHX handler 2.0
    By rthiney in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 11, 2013, 3:36 PM
  3. Replies: 0
    Last Post: Mar 21, 2011, 3:55 PM
  4. [CLOSED] Local ASHX and XML in Store in an MVC
    By fondant in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 20, 2009, 8:22 AM
  5. IHttpHandler (ashx)
    By Zarzand in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 09, 2009, 5:32 AM

Posting Permissions