Good afternoon,
I have trouble going to a view, calling from another view.
I do it in the following way:
I'm in the OlvidoPassword view, and in the view there's a ViewBag.User, what I do is ask if the ViewBag is null, if it is, I send it to ValidateUser view.
@model ProyectoDeGrado.Models.Usuarios
@using db= ProyectoDeGrado.Models.Model1
@{
string Usuario = ViewBag.Usuario;
}
@if (string.IsNullOrEmpty(Usuario))
{
@Html.Action("ValidarUserName", "Usuarios");
}
else
{
@*Serie de codigo*@
}
When I run, it goes to the view that I want but the problem is the way it shows it, in the following image you see the errors: