Questions tagged as 'asp.net-mvc'

1
answer

BundleConfig - Can not find files on the server

I am using Kendo UI in a MVC 4 project, I made the settings in BudleConfig: bundles.Add(new ScriptBundle("~/bundles/kendo") .Include("~/Scripts/kendo/2013.2.918/kendo.all.min.js") .Include("~/Scrip...
asked by 16.07.2014 / 15:38
1
answer

Select in two tables

Ban.cs public partial class Ban { public int IdBan { get; set; } public System.DateTime DataBan { get; set; } public System.DateTime DataDesban { get; set; } public int Usuario_IdUsuario { get; set; } p...
asked by 02.11.2014 / 20:21
1
answer

Web API - How to validate the model from DataAnnotation.Remote ()?

I have the following template (DTO): public class PessoaAcesso : Pessoa { [Remote("LoginUnico", "Pessoa", ErrorMessage = "Esse Login já existe! Escolha outro.")] public virtual string Login { get; set; } ... } In my ApiControlle...
asked by 14.08.2014 / 22:42
1
answer

Action redirect another Action using PartialViewResult

public PartialViewResult Index(string quantidadeRegistro) { int qtd; int.TryParse(quantidadeRegistro, out qtd); var bdPedido = PedidosAplicacaoConstrutor.PedidosAplicacaoEF(); var bdCliente = ClientesAplicacaoC...
asked by 13.06.2014 / 16:08
1
answer

Error sending data to View

Inquiry to bring users in. public IEnumerable PopulaTabelaUsuario() { var banco = new DbBancoContext(); var listaUsuarios = (from l in banco.USUARIOS_PROCESSO select new{ l.ID_USUARIO, l.NOME_USUARIO }).ToList(); retur...
asked by 15.10.2014 / 17:56
1
answer

Return after HttpPost in Partial View

Good evening, I'm working with Bootstrap 3 tabs, and I have the following structure: View.cshtml <div class="tab-content"> <div id="tab_cooperado" class="tab-pane fade"> @{Html.RenderPartial("PartialView", new Mod...
asked by 24.06.2014 / 23:05
1
answer

Visual Studio gets error in ASP.NET MVC 5 project

Hello, I'm trying to open an ASP.NET MVC 5 project and it gives the following error: Can anyone help me? I have already installed the updates and MVC 5. I installed the web pages through NuGet: Install-Package Microsoft.AspNet.Razor -Versi...
asked by 04.07.2014 / 19:41
1
answer

Resources on app_globalresource

I have a class library where I added a resx file, does anyone know how I can at runtime put this resx on app_globalresource so that it is available in all my app web mvc ?     
asked by 01.04.2014 / 13:33
1
answer

Why is the Entity Framework generating a new record in the database? [duplicate]

Next, I'm working on a new project asp.net-mvc , and I have 3 classes. public class Anuncio { public int AnuncioID { get; set; } public string UsuarioID { get; set; } [Required] [MaxLength(255)] [Display(Name="Título")...
asked by 01.04.2014 / 19:45
0
answers

How do I declare a @model in my view

I have a project called Billing. Inside, there is a folder called Models where my models are (only 2). One of them is called an invoice and I need to fill a table (bootstrap) with the data of this model. I need to do something like this, unless...
asked by 04.01.2019 / 19:10