2011年5月24日
摘要: 页面代码: <asp:repeater ID="Repeater1" runat="server"><ItemTemplate ><span style ="font-weight :bold "><%#Eval ("pname") %></span><ul><asp:Repeater ID="detal" runat ="server" DataSource ='<%#GetCity 阅读全文
posted @ 2011-05-24 14:01 专注NET开发 阅读(264) 评论(0) 推荐(0) 编辑
摘要: SHA-1 和 MD5 加密算法均属于不可逆算法,SHA-1基于MD5,MD5又基于MD4。SHA-1比MD5多32位密文,所以更安全。由于同样的原因,MD5比SHA-1的运算速度更快。1. 使用md5 加密,无密钥加密using System.Security.Cryptography;using System.Text;return MD5.Create().ComputeHash(Encoding.UTF8.GetBytes(password)) .Aggregate(string.Empty, (seed, item) => seed + item.ToString(" 阅读全文
posted @ 2011-05-24 13:04 专注NET开发 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 里面所使用的服务提供商为:上海思集信息科技有限公司是个免费的天气预报服务接口 Coder 1usingSystem;2usingSystem.ComponentModel;3usingSystem.Web.UI;4usingSystem.Web.UI.WebControls;5usingSystem.Net;6usingSystem.IO;7usingSystem.Xml;8usingSystem.Text;9usingSystem.Collections.Generic;1011[assembly:WebResource("WeatherReport.image.a_1.gif&q 阅读全文
posted @ 2011-05-24 09:47 专注NET开发 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 贴一些asp.net中Global.asax的code:protected void Application_Start(object sender, EventArgs e) { System.Timers.Timer timer = new System.Timers.Timer(60000);//一分钟执行一次,单位为毫秒 timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); timer.AutoReset = false; //只执行一次 timer.Enabled = true; //启动定时器 阅读全文
posted @ 2011-05-24 09:30 专注NET开发 阅读(303) 评论(0) 推荐(0) 编辑