摘要: 噢 噎死。。。 来看看UrlRewriter这个老古董。猛击这里下载Demo1、 添加 UrlRewriter.dll 到 bin目录中2、configSections 节点中添加 <configSections> <section name="ReplaceUrl" type="URLRewriter.Config.UrlsSection, URLRewriter"/></configSections>3、httpModules节点中添加 <httpModules> <add type="阅读全文
posted @ 2012-05-11 22:34 Contract 阅读(964) 评论(5) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Web.UI.WebControls; 7 using System.Data; 8 using System.Web.UI.HtmlControls; 9 10 namespace 数据绑定 11 { 12 publicpartialclass _Default : System.Web.UI.Page 13 ...阅读全文
posted @ 2011-08-19 23:28 Contract 阅读(223) 评论(2) 编辑
摘要: 刚刚接触asp.net,还是菜鸟一个。今天做了一个从浏览器上传图片的.aspx页面,当然修改后也可以上传其他格式的文件,下面附上代码:--在页面上放一个文件上传控件 和一个按钮,单击按钮触发一下内容 1 //获取文件路径 2 string filePath = fileBookPhoto.PostedFile.FileName; 3 if (string.IsNullOrEmpty(filePath)) 4 { 5 Page.ClientScript.RegisterStartupScript(GetType(), "", "alert('请选择图片!阅读全文
posted @ 2011-08-17 22:44 Contract 阅读(450) 评论(1) 编辑
