FormCollection Empty on Form Post in ASP.NET-MVC?

None of your inputs have a name attribute. No name = not in the FormCollection.

6 Ouch - that's what I get for growing up on WebForms! I thought the id attribute passed the values through on the form. Thanks for the reply!

– Mark Struzinski Feb 2 '09 at 20:33 Thanks! I too thought the id attribute would do it... – µBio Mar 15 '09 at 10:34 This is surprising as everything has seemingly been pointing towards using the id only. Things not as they seemed..to me anyway.. – Mark Redman Apr 6 '10 at 9:19 4 @Mark, this is required per the HTTP spec.Id = how to find it in the DOM.

Name = what gets submitted in the form. – Craig Stuntz Apr 6 '10 at 12:42 1 Sure enough, he's right!(Link love: w3.Org/TR/html401/interact/forms. Html#h-17.2 ) controls need a 'name' attribute when posting.

+1 for helping me stop pull my hair out. – Dan Esparza Aug 13 '10 at 3:53.

Wish I could post this as a simple comment, but I don't have that priviledge... I added all my name attributes, and still no joy. Remember to add your name attribute to your form itself. Must use the overload for HTML.

BeginForm that accepts htmlAttributes.

I had this issue and then realised I had disabled all the INPUT controls before I submitted the form (as a UX feature).

NameValueCollection form = Request. For (int I = 0; I For (int I = 0; I Username = {0}, m. Password = {1}", model.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions