随笔分类 -  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 阅读全文
posted @ 2012-01-09 19:14 ajunfly 阅读(275) 评论(0) 推荐(0)
摘要:添加一个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(\?.*)*$", "$ 阅读全文
posted @ 2011-11-07 11:29 ajunfly 阅读(1057) 评论(0) 推荐(0)