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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - YQM

NUnit单元测试属性介绍 C#静态构造函数 没有使用lock的Singleton How to serialize and deserialize using C# .NET - YQM Javascript调用web service 简单的英语不简单 我们应该怎样去学习和工作--写给自己 扩展方法 - YQM 使用反射-动态创建对象及调用对象方法 - YQM 使用XmlWriter对象 使用XmlReader类 - YQM 知道做什么而不是怎样做(摘抄) 生活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 ="嘿嘿,可以在这修改页面的标题了";

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