예제 #1
0
        public static string getString(string parameter)
        {
            object val = SBRequest.getVar(parameter);

            if (val == null)
            {
                return("");
            }
            return(val.ToString().Trim());
        }
예제 #2
0
        public static string getTask()
        {
            object task = SBRequest.getVar("task");

            if (task != null)
            {
                return(task.ToString());
            }
            return("");
        }
예제 #3
0
        public static int getInt32(string parameter)
        {
            object val = SBRequest.getVar(parameter);

            if (val == null)
            {
                return(0);
            }
            if (string.IsNullOrEmpty(val.ToString()))
            {
                return(0);
            }
            return(Int32.Parse(val.ToString()));
        }