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 & lt; Test & gt; & Lt; TD & gt;

Model

  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;}}   

The problem occurred when I tried to display the basmode in index.chtml

@ html.DisplayFor () will provide a markup template based on the type of properties that indicate where your unwanted markup is coming from.

From MSDN:

Expressions express HTML markup for each property in the object displayed.

You probably want to use something like

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -