示例#1
0
        public static int GetRequiredIntParameter(string parameterName)
        {
            int?value = WebFormsHelper.GetIntParameter(parameterName);

            if (!value.HasValue)
            {
                throw new Exception(string.Format("Missing {0} Parameter", parameterName));
            }
            return(value.Value);
        }
示例#2
0
 public int GetIntParmeter(string parameterName, int defaultValue)
 {
     return(WebFormsHelper.GetIntParameter(parameterName, defaultValue));
 }
示例#3
0
 protected int GetIntViewState(string fieldName, int defaultValue)
 {
     return(WebFormsHelper.GetIntParameter(this.ViewState, fieldName, defaultValue));
 }
示例#4
0
 public int?GetIntParameter(string parameterName)
 {
     return(WebFormsHelper.GetIntParameter(parameterName));
 }