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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
SecWiki News
SecWiki News
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
Jina AI
Jina AI
N
Netflix TechBlog - Medium
GbyAI
GbyAI
IT之家
IT之家
Apple Machine Learning Research
Apple Machine Learning Research
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
C
Cybersecurity and Infrastructure Security Agency CISA
I
Intezer
T
Tor Project blog
P
Palo Alto Networks Blog
P
Privacy & Cybersecurity Law Blog
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Proofpoint News Feed
T
Tailwind CSS Blog
C
Check Point Blog
Cloudbric
Cloudbric
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
Forbes - Security
Forbes - Security
Last Week in AI
Last Week in AI
S
Security Affairs
博客园 - Franky
F
Fortinet All Blogs
量子位
M
MIT News - Artificial intelligence
C
Cisco Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
S
Secure Thoughts
V
Visual Studio Blog
AI
AI
美团技术团队
B
Blog RSS Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
人人都是产品经理
人人都是产品经理
Microsoft Security Blog
Microsoft Security Blog
T
Threatpost
Cyberwarzone
Cyberwarzone

博客园 - 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 ="嘿嘿,可以在这修改页面的标题了";

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