Beispiel #1
0
 public static float StrToFloat(string strValue, float defValue)
 {
     return(TypeParse.StrToFloat(strValue, defValue));
 }
Beispiel #2
0
 public static int StrToInt(string expression, int defValue)
 {
     return(TypeParse.StrToInt(expression, defValue));
 }
Beispiel #3
0
 public static bool StrToBool(string expression, bool defValue)
 {
     return(TypeParse.StrToBool(expression, defValue));
 }
Beispiel #4
0
 /// <summary>
 /// 判断给定的字符串数组(strNumber)中的数据是不是都为数值型
 /// </summary>
 /// <param name="strNumber"></param>
 /// <returns></returns>
 public static bool IsNumericArray(string[] strNumber)
 {
     return(TypeParse.IsNumericArray(strNumber));
 }
Beispiel #5
0
 public static byte GetSelectValue(DropDownList ddlList, byte defValue)
 {
     return((byte)TypeParse.StrToInt(GetSelectValue(ddlList), defValue));
 }
Beispiel #6
0
 public static int GetFormInt(HttpRequest request, string strName, int defValue)
 {
     return(TypeParse.StrToInt(request.Form[strName], defValue));
 }
Beispiel #7
0
 public static float GetFormFloat(string strName, float defValue)
 {
     return(TypeParse.StrToFloat(HttpContext.Current.Request.Form[strName], defValue));
 }