构建ASP.NET应用程序,CDN是否与从Site.Master页面添加的库级联到其他页面? [英] Building ASP.NET application, does the CDNs cascade to other pages with the libraries added from the Site.Master page?

查看:85
本文介绍了构建ASP.NET应用程序,CDN是否与从Site.Master页面添加的库级联到其他页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个使用一对CDNS的应用程序。虽然我不确定其中一个是否有效。 代码调用一些javascript。

I have created an application that utilizes a couple CDNS. Though I am unsure if one of them is working or not. The code calls some javascript.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html ng-app xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body ng-controller="listController">
    <form id="form1" runat="server">
    <div id="listTable">
        <table>
        <thead>Application List</thead>
        <tr>
        <div ng-repeat="Items List" class="ListItem">
            <th>Name</th> 
            
            <td>{{items.id}}</td>
       </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>





虽然我的代码中没有使用javascript库(在本例中为AngularJs),但我添加到了Site.Master页面。我如何验证这是否有效?我试图修改
javascript文件,虽然没有什么能告诉我发生了什么......


Though something in my code is not utilizing the javascript libraries(AngularJs in this case), that I added to the Site.Master page. How do I verify this is working? I've tried to modify the javascript files though nothing is revealing to me what is going on...

推荐答案

嗨Juan Davila,

Hi Juan Davila,

您想验证您的代码是否正常工作或CDN是否正常工作?

如果您想验证CDN是否正常工作,请使用开发者工具(F12) IE浏览器。在"网络"选项卡中,请选择"详细信息"节点以获取主机,如下图所示。或者您可以尝试查看页面的源代码。如果所有CSS,JS和图像链接
都是"http://YourCDN.com/thefile" ;,而不是"http://YourWebSite.com/thefile" ;,这意味着您的CDN正在运行。

如果您想验证您的代码是否有效,请将您的代码发布到
ASP.NET论坛
更多专家会在哪里提供更好的帮助。

 

最好的问候,b
Weiwei

Do you want to verify your code is working or the CDN is working?
If you want to verify CDN is working , please use Developer Tools (F12) in IE browser. In the Network tab, please select the DETAILS node to get the Host as below image. Or you can try look at the source code of your page. If all the CSS, JS and image links is "http://YourCDN.com/thefile", not "http://YourWebSite.com/thefile", which means your CDN is working.
If you want to verify your code is working, please post your code and issue to ASP.NET forum where will more experts provide better help.
 
Best Regards,
Weiwei


这篇关于构建ASP.NET应用程序,CDN是否与从Site.Master页面添加的库级联到其他页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆