private static string BuildRequestParaToString( SortedDictionary <string, string> sParaTemp, Encoding code) { Dictionary <string, string> dictionary = new Dictionary <string, string>(); return(Core.CreateLinkStringUrlencode(Submit.BuildRequestPara(sParaTemp), code)); }
public static string BuildFormHtml( SortedDictionary <string, string> sParaTemp, string gateway, string strMethod, string strButtonValue) { Dictionary <string, string> dictionary1 = new Dictionary <string, string>(); Dictionary <string, string> dictionary2 = Submit.BuildRequestPara(sParaTemp); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append("<form id='alipaysubmit' name='alipaysubmit' action='" + gateway + "_input_charset=" + Submit._input_charset + "' method='" + strMethod.ToLower().Trim() + "'>"); foreach (KeyValuePair <string, string> keyValuePair in dictionary2) { stringBuilder.Append("<input type='hidden' name='" + keyValuePair.Key + "' value='" + keyValuePair.Value + "'/>"); } stringBuilder.Append("<input type='submit' value='" + strButtonValue + "' style='display:none;'></form>"); stringBuilder.Append("<script>document.forms['alipaysubmit'].submit();</script>"); return(stringBuilder.ToString()); }