html - BeginForm in RC bug? -


I think there is something wrong with the new RC. When I write

  html.BeginForm ("item", "newsletter", FormMethod.Post, new {enctype = "multipart / form-data"})  

The method should be presented in some output like this:

  & lt; Form action = "/ newsletter / item" enctype = "multipart / form-data" method = "POST" & gt;  

But instead I'm getting:

  & lt; Form action = "item" enctype = "multipart / form-data" method = "post" & gt;  

Where is my complete action path?

Do you see this everywhere, or when you see the other action results of the "Newsletter" controller Are you? If this is the latter, then this behavior is acting as intent.

If you are depressed then there is no need for a complete path, currently navigated at http://yourwebsite.com/newsletter/ is. In that case, a relative path of items will give you http://yourwebsite.com/newsletter/item/ .


Comments