示例#1
0
        public static DateTime GetRequiredDateTimeParameter(string parameterName)
        {
            DateTime?value = WebFormsHelper.GetDateTimeParameter(parameterName);

            if (!value.HasValue)
            {
                throw new Exception(string.Format("Missing {0} Parameter", parameterName));
            }
            return(value.Value);
        }
示例#2
0
 protected DateTime GetDateTimeParameter(string parameterName, DateTime defaultValue)
 {
     return(WebFormsHelper.GetDateTimeParameter(parameterName, defaultValue));
 }
示例#3
0
        public static DateTime GetDateTimeParameter(string parameterName, DateTime defaultValue)
        {
            DateTime?returnValue = WebFormsHelper.GetDateTimeParameter(parameterName);

            return(returnValue.GetValueOrDefault(defaultValue));
        }
示例#4
0
 protected DateTime?GetDateTimeParameter(string parameterName)
 {
     return(WebFormsHelper.GetDateTimeParameter(parameterName));
 }