This is a migrated thread and some comments may be shown as answers.

Losing default loading splash with ashx handler in silverlight

0 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shrikant
Top achievements
Rank 1
Shrikant asked on 20 Jan 2012, 07:28 AM

Hi

 

I am setting the SL control's source property to a ashx handler, to avoid caching for the moment.

The handler looks like this:  

 

public void ProcessRequest(HttpContext context) 
 
       context.Response.CacheControl = "no-cache";
       context.Response.AddHeader("Pragma", "no-cache");
       context.Response.AddHeader("P3P", @"CP=""IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT""");
            context.Response.Expires = -1;
            context.Response.BufferOutput = false;          
            context.Response.ContentType = "application/x-silverlight-app";
            context.Response.WriteFile(context.Server.MapPath("Trigger.xap"));
 }

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
      <asp:Silverlight ID="Xaml1" runat="server"
        Source="~/ClientBin/XAPHandler.ashx"
         MinimumVersion="4.0.50826.0" width="100%" height="100%">
      </asp:Silverlight>

 

But I am losing default loading Splash screen with this implementation, When I run the application , It show white screen for a moment & then silverlight application comes into picture.

Please help me to solve this if anyone knows about this.

Thanks

Tags
General Discussions
Asked by
Shrikant
Top achievements
Rank 1
Share this question
or