2012年12月26日

摘要: <html><head> <title>水晶球</title> <style type="text/css"> html,body,div,a,font,img{margin:0;padding:0} img{border:0} @-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}} @-moz-keyframes rotate{from{-moz-transform:ro 阅读全文
posted @ 2012-12-26 15:41 wboweb 阅读(389) 评论(0) 推荐(0) 编辑
摘要: <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>旋转图片</title> <script type="text/javascript" src="coos.ui.rotate.js"></script></head><body> <div id="testdiv1&q 阅读全文
posted @ 2012-12-26 11:16 wboweb 阅读(3503) 评论(0) 推荐(0) 编辑

2012年12月11日

摘要: //读取一个本地的Excel文件并导出到文本文档中private void button2_Click(object sender, EventArgs e) { //输入的要导出的前N条数据 int inputnum = 0; string strnum = this.textBox2.Text; int.TryParse(strnum, out inputnum); //Excel 中的数据集 DataSet ds = null; ... 阅读全文
posted @ 2012-12-11 15:46 wboweb 阅读(1466) 评论(0) 推荐(0) 编辑

2012年11月12日

摘要: 首先,先简单介绍一下MD5MD5的全称是message-digest algorithm 5(信息-摘要算法,在90年代初由mit laboratory for computer science和rsa data security inc的ronald l. rivest开发出来, 经md2、md3和md4发展而来。MD5具有很好的安全性(因为它具有不可逆的特征,加过密的密文经过解密后和加密前的东东相同的可能性极小)引用using System.Security.Cryptography;using System.Text;具体代码如下(写在按钮的Click事件里):byte[] result 阅读全文
posted @ 2012-11-12 12:55 wboweb 阅读(3474) 评论(0) 推荐(0) 编辑

2012年11月6日

摘要: 在C#的学习中,容易混淆virtual方法和abstract方法的使用,现在来讨论一下二者的区别。二者都牵涉到在派生类中与override的配合使用。一、Virtual方法(虚方法) virtual 关键字用于在基类中修饰方法。virtual的使用会有两种情况: 情况1:在基类中定义了virtual方法,但在派生类中没有重写该虚方法。那么在对派生类实例的调用中,该虚方法使用的是基类定义的方法。 情况2:在基类中定义了virtual方法,然后在派生类中使用override重写该方法。那么在对派生类实例的调用中,该虚方法使用的是派生重写的方法。二、Abstract方法(抽象方法) abstract 阅读全文
posted @ 2012-11-06 17:18 wboweb 阅读(198) 评论(0) 推荐(0) 编辑

2012年8月24日

摘要: 今天做一个MVC3.0的POST提交测试,发现在[AcceptVerbs(HttpVerbs.Post)][ValidateInput(false)]public ActionResult Synchronous(){ string RequestMsg = Request.Form.ToString(); return Content("success");}这样一个ActionResult 前面加上了 [ValidateInput(false)] 还是会出现 --从客户端(="...")中检测到有潜在危险的 Request.Form 值。-- 这样的 阅读全文
posted @ 2012-08-24 14:01 wboweb 阅读(982) 评论(0) 推荐(0) 编辑

2012年8月23日

摘要: function showCurrentInIfaremPosition() { var isIE = false; if (window.ActiveXObject) { isIE = true; } var isIE9 = false; var browser = navigator.appName var b_version = navigator.appVersion ... 阅读全文
posted @ 2012-08-23 10:27 wboweb 阅读(1215) 评论(0) 推荐(0) 编辑
摘要: //此方法对于嵌套在一个页面A中的B页面,获取B页面的位置在IE9和其他浏览器(包括IE其他系列浏览器)下有些不同,IE9是根据浏览器来定位的,FF及其他则是根据当前页面也就是嵌套的页面来定位的(真正兼容还待改进) function getEvent() //同时兼容ie和ff的写法 { if (document.all) return window.event; func = getEvent.caller; while (func != null) { ... 阅读全文
posted @ 2012-08-23 09:10 wboweb 阅读(6374) 评论(0) 推荐(0) 编辑

2012年8月15日

摘要: background-color:transparent;filter:alpha(opacity=5);opacity: 0.1; 阅读全文
posted @ 2012-08-15 14:47 wboweb 阅读(142) 评论(0) 推荐(0) 编辑

2012年8月14日

摘要: /// <summary> /// 根据IP获取省市 /// </summary> public void GetAddressByIp() { string ip = "115.193.217.249"; string PostUrl = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?ip=" + ip; string res = GetDataByPost(PostUrl);//该条请求返回的数据... 阅读全文
posted @ 2012-08-14 15:16 wboweb 阅读(2780) 评论(1) 推荐(1) 编辑

导航