html - How do I get Asp.net MVC BeginForm to add closing tag correctly? -


I think something is clear, but it can not see how it is.

My problem is that the closing form tag for BeginForm is not being added to my markup. I am looping through a collection and creating a form for every item, but the form Are not properly closed i have any suggestions? Thanks

  & lt;% foreach (Miscellaneous items in the model) {%> Use of & lt;% (Html.BeginForm ("EditUser", "Users")) {%> & Lt; TR & gt; & Lt; TD & gt; & Lt; Input id = "contactID" type = "hidden" value = "& lt;% = item.ContactID%>" / & Gt; & Lt;% = item.Email% & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt;% = item.Market.MarketName% & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt;% = item.ContactType.ContactTypeName% & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Input type = "submit" value = "edit" /> & Lt; / TD & gt; & Lt; / TR & gt; & Lt;%}% & gt; & Lt;%}% & gt;  

That is not a valid HTML for creating a form inside a table Markup looks okay, so I'm guessing that this may be your problem. You can probably & lt; Tr & gt; If you still do not work, you may have to use a div based layout under the tag.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -