Request.Form'daki her şeyi tükürmek istiyorum, böylece onu bir ip gibi döndürüp neyle uğraştığımı görebiliyorum. Ben bir döngü için ...Request.Form ile herhangi bir ayrıntıyı bilmeden nasıl geçilir?
// Order/Process
// this action is the submit POST from the pricing options selection page
// it consumes the pricing options, creates a new order in the database,
// and passes the user off to the Edit view for payment information collection
[AcceptVerbs(HttpVerbs.Post)]
public string Process()
{
string posted = "";
for(int n = 0;n < Request.Form.Count;n++)
posted += Request.Form[n].ToString();
return posted;
}
kurma çalıştı Ama hiç geri almak bütün '12' ve ben çok daha fazla şeyler daha formda olduğunu biliyoruz ...
+1 Bu bir :) –