0
I have a project in Asp.net mvc 5 that I needed to pass pro mvc 4, so I created another project Asp.net mvc 4, copied all the folders of the other project, the references tal and gave a build and does not return any errors, but when running the project opens all blank. How to fix this mistake ?
My View:
@section featured {
<section class="featured">
<div class="content-wrapper">
<h3>Seja bem-vindo. Informe seu login e senha do portal. </h3>
<div id="loginPrincipal">
@if (HttpContext.Current.User.Identity.IsAuthenticated)
{
<text>
Seja bem vindo @HttpContext.Current.User.Identity.Name <a href="/Conta/LogOff">Sair</a>
</text>
}
else{
{
using (Html.BeginForm()){
<text>
<label>Login: @Html.TextBox("login")</label>
<label>Senha: @Html.Password("senha")</label>
<label><input type="submit" value="Entrar" /></label>
</text>
}
}
}
<p class="msgErro">
@ViewBag.Message
</p>
</div>
</div>
</section>
}
Go see the View he displays is blank :]
– PauloHDSousa
@Paulohdsousa is not no. : S
– AndreeH
You can post a print of the view that opens and action.
– PauloHDSousa
@Paulohdsousa I’ll put the code.
– AndreeH
You could put your project on Github and provide a link so we can examine it?
– Leonel Sanches da Silva
Wow rs, how do I do it @Gypsy ?
– AndreeH
@Andreeh Get in here and I’ll explain: http://chat.stackexchange.com/rooms/25342/c-asp-net-asp-net-mvc-entity-framework-etc
– Leonel Sanches da Silva