01 2013 档案

摘要:aspx代码:View Code <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script type="text/javascript&q 阅读全文
posted @ 2013-01-25 10:50 夜照亮了黑 阅读(293) 评论(0) 推荐(0)
摘要:在.Net中下载文件实际上就是往浏览器返回一个包含该文件的唯一url地址由于url的编码为AscⅡ码,如果要下载文件名为中文的文件就可以会出现乱码,所以需要对文件名进行编码 string fileName = "测试.docx"; string encodeName = HttpUtility.UrlPathEncode(fileName);//对中文进行编码 Response.ContentType = "application/octet-stream"; Response.AppendHeader("... 阅读全文
posted @ 2013-01-16 14:26 夜照亮了黑 阅读(841) 评论(0) 推荐(0)
摘要:其实,用的最多的算是省市联动了直接上代码了aspx页面:View Code <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>省市联动</title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script typ 阅读全文
posted @ 2013-01-07 16:31 夜照亮了黑 阅读(271) 评论(0) 推荐(0)