随笔分类 - C#
摘要:/// <summary> /// 赋值 表名,控件名,要查询的唯一数据 /// </summary> protected void SetEvaluate(string TableName, string UpName, string Id) { ContentPlaceHolder cph = (ContentPlaceHolder)Page.Master.FindControl("cph_context"); UpdatePanel up = (UpdatePanel)cph.FindControl(UpName); DataTable dt
阅读全文
摘要:添加一个global.asax文件新增如下代码 protected void Application_BeginRequest(object sender, EventArgs e) { string oldUrl = HttpContext.Current.Request.RawUrl; UrlRewrite(oldUrl, @"^(.*)/Index\.htm", @"Default1.aspx"); UrlRewrite(oldUrl, @"^(.+)/view-(\d+)-(.+)\.htm(\?.*)*$", "$
阅读全文