public static string getString(string parameter) { object val = SBRequest.getVar(parameter); if (val == null) { return(""); } return(val.ToString().Trim()); }
public static string getTask() { object task = SBRequest.getVar("task"); if (task != null) { return(task.ToString()); } return(""); }
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())); }