随笔分类 - 程序开发实践之路
一次项目是理论知识的直接或间接的实践过程,记录必要的足迹,以供自己体会之用.
摘要:DataFormatString格式字符串 DataFormatString="{0:格式字符串}" 在DataFormatString 中的 {0} 表示数据本身,而在冒号后面的格式字符串代表所们希望数据显示的格式; 数字、货币格式:在指定的格式符号后可以指定小数所要显示的位数。例如原来的数据为「1.56」,若格式设定为 {0:N1},则输出为「1.5」。其常用的数值格式如下表所示: 格式字...
阅读全文
摘要:整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。只能输入有1~3位小数的...
阅读全文
摘要:全并行的DataGridCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1private void grdSearchResults_ItemDataBound(object sender, System.Web.UI.WebControls.Dat...
阅读全文
摘要:前些时候写DataGrid合并行效果,在网上偶然必然了这个接口的实现。 Itemplate例子MsdnCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Web; 3using System.We...
阅读全文
摘要:.aspxCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 3 4 5 6 ...
阅读全文
摘要:业务层: 业务层Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.EnterpriseServices; 3 4using MyBusiness.Personnel; 5using MyBusi...
阅读全文
摘要:我本不是个好争之人,但在技术上我从来都是表达自己的想法而后快.记得刚接触一期,我就觉得那里有对头.随着时间的推移,我才感觉到原来是Asp.net程序员在开发的过程常会出现的错误使之(先这样认为).整个项目采用的是后台实现业务逻辑和数据访问;这就出现的SQL语句和业务逻辑混合在一起的大问题.(会出那些问题呢?)(1)数据访问出现在后台中,将不得不面对一个数据访问的代码重复问题,在量的相同表操作的语句...
阅读全文

浙公网安备 33010602011771号