随笔分类 -  Asp.net

发布IIS后JS有变动无法及时响应
摘要:在Web开发测试过程中,一般我们会发布一个iis用于访问当前开发项目,但如果js有变动的话有时候不能及时响应,在网上查了一下并经过亲自验证确实是可以的,现记录一下: 1、谷歌浏览器 只要F12打开开发者工具,点击右下角的齿轮“设置”按钮进入下一界面,选中General选项卡中的Disable cac 阅读全文

posted @ 2021-04-15 10:18 若灵思源 阅读(368) 评论(0) 推荐(0)

.svn更新中途报错,无法clean up
摘要:在进行svn数据更新的时候,有时候突然会中断而且无法再update,运行cleanup也无法执行,这里提供一种方法 1、在百度中搜索"sqlite3" 2、将sqlite3.exe文件拷贝到项目目录下(例如:E:\Projects\***) 3、运行cmd 进入到项目目录 4、运行命令:.sqli... 阅读全文

posted @ 2015-12-14 16:02 若灵思源 阅读(314) 评论(0) 推荐(0)

url重写
摘要:url重写 阅读全文

posted @ 2015-06-05 15:18 若灵思源 阅读(180) 评论(0) 推荐(0)

asp.net 操作xml
摘要:usingSystem;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Web;usingSystem.Web.SessionState;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.HtmlControls;usingSystem.Xml;privateXmlDocumentxmlDoc;//loadxmlfileprivatevoidLoadXml( 阅读全文

posted @ 2012-06-27 17:45 若灵思源 阅读(108) 评论(0) 推荐(0)

FreeTextBox使用
摘要:使用FreeTextBox控件时,需要在页面中设置ValidateRequest="false",如果运行报错的话,还需要在配置文件<System.Web>标签下添加<pages pageBaseType="System.Web.UI.Page" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/> <httpRuntime requestValidationMode="2.0"maxR 阅读全文

posted @ 2012-06-27 17:44 若灵思源 阅读(147) 评论(0) 推荐(0)

GridView导出Excel
摘要:首先要重载VerifyRenderingInServerForm方法,否则会报“GridView要在有run=server的From体内”的错。public override void VerifyRenderingInServerForm(Controlcontrol){// Confirms that an HtmlForm control is rendered for}protected void btnExport_Click(object sender, EventArgs e){string vOutputName = lblTitle2.Text.Trim();//Excel. 阅读全文

posted @ 2012-06-27 17:42 若灵思源 阅读(165) 评论(0) 推荐(0)

导航