c# - @HTML.DisplayFor is displaying unwanted markup -
I'm new to the unit framework when I'm trying to display using @html. DisplayFilm displays additional markup which is empty in the HTML page.
Example: "test text" to Model The problem occurred when I tried to display the basmode in index.chtml From MSDN: Expressions express HTML markup for each property in the object displayed. You probably want to use something like & lt; Test & gt; & Lt; TD & gt;
Public class third party {public string ProductId {get; & Lt; / Text & gt; set; } Public listing & lt; String & gt; Option {get; Set; } Public listing & lt; String & gt; Get input bibbles {get; Set; }} Public class validation message {public string insured {get} Set; } Public listing & lt; String & gt; Get input bibbles {get; Set; }} Public class licensees {public string name {get; Set; } Public String Category {Received; Set; } Public listing & lt; Base module & gt; Basmodules {receive; Set; } Public List & gt; Third party & gt; Third party (m); Set; } Public listing & lt; String & gt; Get input bibbles {get; Set; } Public listing & lt; Validation message & gt; Validation message {receive; Set; } Public listing & lt; JPT & gt; Get JpTP Products { Set; }} Public Class Beesmode {Receive Public String Category { Set; } Public string name {get; Set; }} Public class product {public license-license license {receipt; Set; } Public listing & lt; License Base & gt; Sublicense {get} Problem;}}
@ html.DisplayFor () will provide a markup template based on the type of properties that indicate where your unwanted markup is coming from.
Comments
Post a Comment