浏览器查看源代码发现在URL为非localhost时会多出2个文件, 这个2个文件就是ext.net的弹窗文件
那么只要在BeginRequst中简单过滤就可以阻止弹窗
protected void Application_BeginRequest(object sender, EventArgs e)
{
// extnet/unlicensed/un-js/ext.axd?v=41185
// extnet/unlicensed/css/un-css/ext.axd?v=41185
string url = this.Request.Url.ToString();
if (url.Contains("unlicensed"))
{
this.Response.End();
}
}
在网站开发中,遇到在URL为非localhost时出现ext.net的弹窗问题,通过在Application_BeginRequest事件中进行简单过滤可以有效阻止弹窗。文章详细介绍了如何在ASP.NET应用程序中实现这一解决方案。

399

被折叠的 条评论
为什么被折叠?



