我有一些HTML,这些HTML存储在ASP.NET中的静态字符串中,并用于在呈现页面时动态生成HTML标记。该页面最初具有这两个图标。
您可以在此处查看HTML标记:
此后,我从ASP.NET中的静态字符串中删除了对该HTML的引用(请参见下文)
public static string SparkCardSingle
{
get
{
return "<div class='uk-card uk-card-default uk-card-body'> " +
" <div class='uk-card-header'> " +
" <div class='uk-grid-small uk-flex-middle' uk-grid> " +
" <div class='uk-width-auto'> " +
" <img class='uk-border-circle' width='40' height='40' src='data:image/jpg;base64,[base64image]'> " +
" </div> " +
" <div class='uk-width-expand'> " +
" <h3 class='uk-card-title uk-margin-remove-bottom'>[title]</h3> " +
" <span class='uk-label'>[category]</span>" +
" <p class='uk-text-meta uk-margin-remove-top'>[createdon] by [creator]</p> " +
" </div> " +
" <div> " +
" <a href='SparkDetail?action=like&id=[sparkid]' class='uk-icon-button' uk-icon='icon:heart;ratio: 3.5' uk-tooltip='Like this Spark' [disable]></a>" +
" </div> " +
" </div> " +
" </div> " +
" <div class='uk-card-body' id='content-[#]' runat='server'> " +
" <p>[contenttext]</p> " +
" </div> " +
" <div class='uk-card-footer'> " +
" <div class='container'> " +
" <span class='uk-icon' uk-icon='comments' uk-tooltip='Comments'></span> " +
" <span class='uk-badge badge-notify'>[commentcount]</span> " +
" <span class='uk-icon' uk-icon='heart' uk-tooltip='Likes'></span> " +
" <span class='uk-badge badge-notify'>[likecount]</span> " +
" </div> " +
" </div> " +
"<hr />" +
"<div class='uk-card-footer'>" +
"<h6 class='uk-heading-line uk-text-left'><span>[user] says...</span></h6>";
}
}
在重新部署站点后(多次),这些图标在我查看页面时仍然存在吗?这怎么可能?我已经清除了缓存,甚至在我的项目中搜索了该动态HTML中的关键字。代码肯定不见了。我已经清除了浏览器缓存等。我应该提到我正在将项目构建为ASP.NET,并使用适用于AWS的AWS工具包通过Elastic Beanstalk(运行IIS)将其部署到AWS。