惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
S
Secure Thoughts
aimingoo的专栏
aimingoo的专栏
量子位
F
Full Disclosure
云风的 BLOG
云风的 BLOG
D
Docker
Stack Overflow Blog
Stack Overflow Blog
Last Week in AI
Last Week in AI
Security Latest
Security Latest
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
T
Threat Research - Cisco Blogs
The Hacker News
The Hacker News
The Register - Security
The Register - Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MyScale Blog
MyScale Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
P
Privacy & Cybersecurity Law Blog
V
Visual Studio Blog
A
Arctic Wolf
L
LINUX DO - 热门话题
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
TaoSecurity Blog
TaoSecurity Blog
Recorded Future
Recorded Future
K
Kaspersky official blog
L
Lohrmann on Cybersecurity
V
V2EX
Recent Announcements
Recent Announcements
N
News and Events Feed by Topic
MongoDB | Blog
MongoDB | Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Securelist
S
Security Affairs
Forbes - Security
Forbes - Security
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
C
Cisco Blogs
AI
AI
Vercel News
Vercel News
博客园 - 三生石上(FineUI控件)
Cisco Talos Blog
Cisco Talos Blog
T
Tor Project blog
Scott Helme
Scott Helme
Spread Privacy
Spread Privacy

博客园 - YQM

NUnit单元测试属性介绍 C#静态构造函数 没有使用lock的Singleton How to serialize and deserialize using C# .NET - YQM Javascript调用web service 简单的英语不简单 我们应该怎样去学习和工作--写给自己 扩展方法 使用反射-动态创建对象及调用对象方法 使用XmlWriter对象 使用XmlReader类 知道做什么而不是怎样做(摘抄) 生活15点,要记住! 设计模式之Command模式 使用javascript动态添加和删除table的行和列 Generate unique strings and numbers in C#(生成一个唯一的字符串和数值) Localization in ASP.NET 2.0 ASP.NET 2.0: Playing a bit with GridView "Sort Grouping" 通过TryParse来检验和转换数据类型
Some notes
YQM · 2007-04-28 · via 博客园 - YQM

获取当前日期的月份名称:
string TheStartMonth = System.Globalization.DateTimeFormatInfo.CurrentInfo.GetMonthName(TheStartDate.Month);

当vs打不开设计视图时,试试这个:

start-->run:devenv /ResetSkipPkgs

Request.QueryString["param"]
用这个方法获取值的时候,会把参数值全部变为小写。如一个url是:http://www.xxx.com/xxx.aspx?param=HelloWorld, 当你用 Request.QueryString["param"]来获取param值的时,获取到的值将不是"HelloWorld",而是"helloworld"。(asp.net 2.0下)。
这样有时很会很麻烦,不知道能不能换别的办法来获取真实的参数值。那位知道告诉我一下。先谢谢了。
 
在欧洲有些国家使用小数与中国不一样,比如在中国表示"1.000",在他们那是1000,而1,000,在他们那是1.000,可以看出来,刚好相反,我们用点的地方他们用逗号,我们用逗号的地方他们用点。
我们可以用NumberFormatInfo来解决这个问题,new一个NumberFormatInfo,然后设置它的NumberDecimalSeparator属性为",",下面是一个例子:

1NumberFormatInfo nfi = new NumberFormatInfo();
2nfi.NumberDecimalSeparator = ",";
3float f = float.Parse("1234,56", nfi);

循环datagrid:
For Each di As DataGridItem In data_grid.Items
循环gridview
For Each row As GridViewRow In gv.Rows
--------------------------
///<summary>
/// 去除html标记
///</summary>
///<param name="strHtml">包括HTML的源码</param>
///<returns>已经去除后的文字</returns>
protected static string StripHTML(string strHtml)
{
      string temp = System.Text.RegularExpressions.Regex.Replace(strHtml, "<[^>]*>", "");
       return temp.Replace(" ", " ");
}
------------------

生成Linq to sql的实体类代码:
sqlmetal /conn:server=.;database=dbName;uid=sa;pwd= /map:c:\xxxx.map /code:c:\xxxx.cs /serialization:Unidirectional
注:使用了serialization开关,告知sqlmetal在生成实体的时候自动把它们标记为WCF数据对象
-----------------------
取出mssql表中的重复数据
select 要判断的字段,count(要判断的字段) from 表名 group by sid having count(要判断的字段)>1

=============
SVN checkin 文件忽略配

为TortoiseSVN设置Global ignore pattern为“ obj bin *.suo *.cache *.scc *.user *.gpState Thumbs.db”

============

 获取excel列名对应的number

Code

=========

浮在上面的层和使用png透明背景图片,兼容ie6

Code

==================================================================

获取Page对象,有些方法需要page对象下,比如Server.MapPath()

Page page = HttpContext.Current.CurrentHandler as Page;

Page.Title ="嘿嘿,可以在这修改页面的标题了";

===================================================================