views:

100

answers:

1

I am using the EnableCdn=true in my ScriptManager so that WebResource.axd and ScriptResource.axd are overridden with static links to JS libraries at the MS CDN service as follows:

<asp:ScriptManager ID="ScriptManager1" runat="server" EnableCdn="true"  />

How do I override the CDN URLs or service so that I can retrieve the scripts over HTTPS from the MS CDN service rather than HTTP to avoid the browser mixed mode message? or for that matter a different or my own CDN service entirely.

A: 

Now, there’s a new property on WebResourceAttribute: CdnPath:

[assembly: WebResource("Foo.js", "application/x-javascript", 
    CdnPath = "http://foo.com/foo/bar/foo.js")]

More info here.

Keltex
I am wanting to do this globally one time and not on a script by script basis and am struggling with where/how to do that.
plattnum