04 2011 档案
摘要:使用soaphead方法可以在webservice的请求中增加头部信息,当有人调用我们的webservice时,可以通过查询这个请求的头部信息并验证来防止该软件以外的程序调用webserviceusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Services;usingSystem.Data;usingGB.BLL;usingGB.Utility;usingSystem.Web.Services.Protocols;publicclassAuthHeader
阅读全文
摘要:C#自带的Random rnd = new Random(),以时间作为随机数种子,在计算机高速运作中可能出现相同值以下方式获取随机数种子来源:http://archive.msdn.microsoft.com/MersenneTwister/Release/ProjectReleases.aspx?ReleaseId=529protected void Button2_Click(object sender, EventArgs e) { //===1.=== int seed = Math.Abs((int)BitConverter.ToUInt32(Guid.NewGuid().ToBy
阅读全文

浙公网安备 33010602011771号