private static int getSelectedValue(String dropName, int val) { if (CurrentRequest.getHttpMethod().Equals("POST")) { return(cvt.ToInt(CurrentRequest.getForm(dropName))); } return(val); }
private static String getSelectedValue(String dropName, Object val) { String str = cvt.ToNotNull(val); if (strUtil.IsNullOrEmpty(str) && CurrentRequest.getHttpMethod().Equals("POST")) { str = CurrentRequest.getForm(dropName); } str = cvt.ToNotNull(str); return(str); }
private static String[] getSelectValueArray(String chkName, String selectValue) { if (CurrentRequest.getHttpMethod().Equals("POST")) { selectValue = CurrentRequest.getForm(chkName); } if (strUtil.HasText(selectValue)) { return(selectValue.Split(new char[] { ',' })); } return(null); }
public String GetForm(String key) { return(CurrentRequest.getForm(key)); }