System.Net.WebClient WebClientObj = new System.Net.WebClient();WebClientObj.Headers.Add("Content-Type ", "text/html; charset=iso-8859-1");#region XXXSystem.Collections.Specialized.NameValueCollection PostVars= new System.Collections.Specialized.NameValueCollection();PostVars.Add("Address", address);PostVars.Add("Estate", louPan);PostVars.Add("Bigarea", quyu);PostVars.Add("Remark", reamrk);PostVars.Add("Build_year", "2010");PoPostVars.Add("chengzuType", chengzuType);#endregionif (type == "求购" || type == "出售"){PostVars.Add("Sale_unitprice", price.ToString());//sbr.Append("&Sale_unitprice=" + Encod(price.ToString()));}else if (type == "求租" || type == "出租"){PostVars.Add("Rent_price", price.ToString());//sbr.Append("&Rent_price=" + Encod(price.ToString()));}#try{string url = "这里是对方提供的地址";WebClientObj.UploadValues(url, "POST", PostVars);}catch (Exception ex){Session["loginError"] = ex.Message;}