@Html.InputTextFor(s => s.name)
取得s.name中的name
dynamic exp = expression.Body.GetType().GetProperty("Member").GetValue(expression.Body, null);
var strName = (string)exp.Name;
strName为...
分类:
其他好文 时间:
2015-01-23 06:15:37
阅读次数:
547
public static MvcHtmlString InputTextFor(this HtmlHelper html, Expression> expression,object attr=null)
{
DisplayAttribute disp = null;
VilidateAttribute vilidate = ...
分类:
Web程序 时间:
2015-01-23 06:13:40
阅读次数:
186
1、空值的处理——判断是否为空,为空时取一个值,不为空时取另一个值 1)、Sql Server 中ISNULL(check_expression,replacement_value)解释:如果check_expression值为空,则返回replacement_value,否则直接返回check_....
分类:
数据库 时间:
2015-01-22 23:02:01
阅读次数:
254
1. Expression robot中没有自动transaction控制,即如有需要,请手工添加; Test Scenario: 在expression中添加了update两笔part attribute的code如下1 part1 = (WTPart) CustAttributeOperati....
分类:
其他好文 时间:
2015-01-22 21:51:43
阅读次数:
235
EL 全名为Expression LanguageEL 语法很简单,它最大的特点就是使用上很方便。接下来介绍EL主要的语法结构:${sessionScope.user.sex}所有EL都是以${为起始、以}为结尾的。上述EL范例的意思是:从Session的范围中,取得用户的性别。假若依照之前JSP ...
分类:
其他好文 时间:
2015-01-22 20:13:24
阅读次数:
198
第一部分 简介正则表达式Regular Expression,通常简写为regex。定义一个字符串规则主要用来判断字符串是否是或含有符合regex定义的规则的字符串。Regex.IsMatch获取字符串中符合regex定义的规则的字符串。Regex.Match替换字符串中符合regex定义的规则的字...
分类:
其他好文 时间:
2015-01-22 19:45:57
阅读次数:
216
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input...
分类:
其他好文 时间:
2015-01-22 18:08:59
阅读次数:
145
原文链接:http://oracle-base.com/articles/misc/regular-expressions-support-in-oracle.php
Introduction
Example 1 : REGEXP_SUBSTR
Example 2 : REGEXP_SUBSTR
Example 3 : REGEXP_SUBSTR
Example 4 : REGE...
分类:
数据库 时间:
2015-01-22 13:25:46
阅读次数:
329
1.grep简介grep (global search regular expression_r(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、e...
分类:
系统相关 时间:
2015-01-22 12:30:57
阅读次数:
236
5.1 if语句没什么好说,if语句语法如下:if expression: expr_true_suit5.1.1多重条件表达式单个if语句可以通过布尔操作符and,or,not实现多重条件判断或否定判断。if not warn and (system_load>=10): print 'WARN....
分类:
编程语言 时间:
2015-01-21 22:09:02
阅读次数:
267