上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
  2012年5月22日
摘要: javascript:Remove all non dot / digits:var currency ="$1,100.00";var number =Number(currency.replace(/[^0-9\.]+/g,""));C#:CultureInfo culture = CultureInfo.GetCultureInfo(IocServiceFactory.Resolve<IStateStorage>().UserFormatLanguage);double result = 0.0;bool success = doubl 阅读全文
posted @ 2012-05-22 13:08 cw_volcano 阅读(630) 评论(0) 推荐(0) 编辑
  2012年5月21日
摘要: Use a hashing algorithm, such as SHA256,to store passwords. Make sure tosalt the hashes.Step 1. Compute the SaltYou can compute the salt value by using theRNGCryptoServiceProviderclass, as shown in the following code example.using System.Security.Cryptography;...private static string CreateSalt(int 阅读全文
posted @ 2012-05-21 19:15 cw_volcano 阅读(304) 评论(0) 推荐(0) 编辑
  2012年5月6日
摘要: (1)(2) 阅读全文
posted @ 2012-05-06 09:07 cw_volcano 阅读(169) 评论(0) 推荐(0) 编辑
  2012年5月1日
摘要: 许多开发工具都已提供HTML5支持,试试下面这些:Visual Studio 2010 SP1– SP1 增加了对HTML5、CSS3 IntelliSense和Validation基本功能的支持。更多相关信息请参见http://blogs.msdn.com/b/webdevtools/archive/2011/01/27/html5-amp-css3-in-visual-studio-2010-sp1.aspx。Web Standards升级版Microsoft Visual Studio 2010 SP1– 这是一个Visual Studio 的扩展,它增加了对HTML5、CSS3 Int 阅读全文
posted @ 2012-05-01 10:27 cw_volcano 阅读(260) 评论(0) 推荐(0) 编辑
  2012年4月30日
摘要: Linq To Xml学习 - 3.查询、更新、删除http://kb.cnblogs.com/page/42600/首先我们创建一个新窗体,这里以我的网站为例,我们起名叫Rss.aspx创建完成后,如果Rss数据源是XML实际文档,就跳过下面一步,如果Rss数据源是aspx文件请在创建完新页面后切换到源视图保留这一行:<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Rss.aspx.cs"Inherits="Rss"%>其余的html代码全部删除 阅读全文
posted @ 2012-04-30 21:24 cw_volcano 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 一、大括号的位置 绝大多数的编程语言,都用大括号({})表示区块(block)。起首的大括号的位置,有许多不同的写法。 最流行的有两种。一种是起首的大括号另起一行:block{...} 另一种是起首的大括号跟在关键字的后面:block {...} 一般来说,这两种写法都可以接受。但是,Javascript 要使用后一种,因为 Javascript 会自动添加句末的分号,导致一些难以察觉的错误。return{key:value;}; 上面的代码的原意,是要返回一个对象,但实际上返回的是 undefined,因为 Javascript 自动在 return 语句后面添加了分号。为了避免这... 阅读全文
posted @ 2012-04-30 10:10 cw_volcano 阅读(353) 评论(0) 推荐(0) 编辑
  2012年4月26日
摘要: Internet Explorer9 将支持某些HTML5 特性;当前,video 元素支持两种视频格式:Internet Explorer Firefox 3.5 Opera 10.5 Chrome 3.0 Safari 3.0Ogg X X XMPEG 4 X XOgg = 带有Thedora 视频编码和Vorbis 音频编码的Ogg 文件MPEG4 = 带有H.264 视频编码和AAC 音频编码的MPEG 4 文件Internet Explorer 8 不支持video,audio元... 阅读全文
posted @ 2012-04-26 21:16 cw_volcano 阅读(295) 评论(0) 推荐(0) 编辑
  2012年4月25日
摘要: Touch The Future: Create An Elegant Website With HTML 5 And CSS3:http://www.pvmgarage.com/2010/04/touch-the-future-create-an-elegant-website-with-hmtl-5-and-css3/Coding a CSS3 & HTML5 One-Page Website Template:http://tutorialzine.com/2010/02/html5-css3-website-template/Create a Stylish Contact F 阅读全文
posted @ 2012-04-25 17:02 cw_volcano 阅读(214) 评论(0) 推荐(0) 编辑
摘要: RGBAThe first three values are RGB color values and the last value is the level of the transparency (0 = transparent and 1 = opaque).RBGA can be applied to any properties associated with color such as font color, border color, background color, shadow color, etc.Text ShadowText shadow is structured 阅读全文
posted @ 2012-04-25 15:27 cw_volcano 阅读(164) 评论(0) 推荐(0) 编辑
  2012年3月27日
摘要: 恢复客户发过来的备份数据库后发现其Collation为Latin1_General_CI_AS, 但自己的sql2008默认实例的Collation为SQL_Latin1_General_CP1_CI_AS,于是运行程序报错:Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.解决方法:创建新的sql server实例,创建过程中选择Server C 阅读全文
posted @ 2012-03-27 14:44 cw_volcano 阅读(1268) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页