Losing default loading splash with ashx handler in silverlight

Posted by Shrikant_SL under Silverlight on 1/20/2012 | Points: 10 | Views : 1339 | Status : [Member] | Replies : 0
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




Responses

(No response found.)

Login to post response