Ext.Net 破解

在使用 Ext.Net 框架时,如果没有得到正版授权(安装密钥),在站点发布后,打开界面总是弹出一个窗口,提示没有授权,看着都头疼,难道一定要安装密钥吗?但还是有办法解决的,在研究时发现,页面中多了两个.js文件

 

在 Global.asax.cs  文件中添加以下代码

        /// <summary>
        /// 过滤 ext.net 非授权弹窗
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Application_BeginRequest(object sender, EventArgs e)
        {
            string url = this.Request.Url.ToString();
            if (url.Contains("unlicensed"))
            {
                this.Response.End();
            }
        }

 重新启动站点即可

原文地址:https://www.cnblogs.com/wisdo/p/5061054.html