I have a SQL statement:
var motivo = conexion.Query("SELECT * FROM historialvisitas WHERE idvisita ='"+rgtro+"' ");
This table has several columns, how do I show via RAZOR @
the value of a specific column?
Example:
I want to show the values of the column motivovisita
within a div
, I do something like this: "between divs"
<div> @motivo </div>
and <div> @motivo.motivovisita </div>
But no, it's wrong. What can I do?