I have an Action Usuario
that displays user details among other actions that can be performed. I also have a javascript
code that needs to part of setting a model property in the javascript variable. Here is the code below:
@model Aprendendo.Asp.Net.Model.Usuario
//Códigos html
<script type="text/javascript">
var idUsuario = @Model.Id;
//Demais códigos
</script>
But that way it is not working. What to do in this situation?