Questions tagged as 'asp.net-mvc-5'

2
answers

MVC Custom and Friendly Routes | Create a Route with only one parameter in the URL

How to create a route where only the single parameter would be displayed? For example, my route is currently like this: routes.MapRoute( name: "RouteEvent", url: "{ProdutoNome}", defaults: new { controller = "Produto",...
asked by 18.08.2017 / 22:09
1
answer

Change banner to each page refresh

I have a list with 3 Banners . I always have to show a different one every Refresh from Page , even after closing the browser. I'm thinking of doing a counter of impressions every time a Banner is shown adds + 1 to the counter and I...
asked by 20.05.2014 / 00:38
2
answers

Bundle does not render css asp.net mvc

I have my bundle @Styles.Render("~/Content/css") And it just stopped working, it does not render anything The bundle is being registered in global.asax BundleConfig.RegisterBundles(BundleTable.Bundles); And when you disable Enable...
asked by 02.09.2014 / 15:09
2
answers

How to change CheckBox with onChange from DropDownList in ASP.NET MVC Table?

I'm developing a site with ASP.NET MVC and Razor, I have one table with a few columns in one of my pages. I have in this table a State column which has a CheckBox and another column containing a DropDownList with some options. I would like...
asked by 20.05.2016 / 14:27
2
answers

Translating Identity en

I'm using Identity in my application MVC 5.2.3 Microsoft.AspNet.Identity.Core 2.2.1 I also installed the translation package for it Microsoft.AspNet.Identity.Core.pt-br 2.2.1 Microsoft.AspNet.Mvc.pt-br 5.2.3 Microsoft.Owin.p...
asked by 01.09.2017 / 19:59
2
answers

Normalization of tables and Relationships

I'm starting a project from scratch and in the middle of modeling the bank, I had a problem. When I built the models , I could not do it right and I ended up confusing everything. I have student information, occurrences and logins. Where I h...
asked by 27.10.2014 / 04:00
3
answers

How do I use Skip and Take with the PagedList Helper

I would like to paginate, but using Skip and Take in my LINQ not to fetch all results. Currently my code looks like this: public ViewResult Index(int? page) { var grupos= from s in db.grupos...
asked by 20.08.2014 / 19:23
3
answers

Capturing the user's real IP

How do I capture the real IP / Public IP of the user who is accessing the application? The IP of the computer I can capture normally, but I want to know the public IP of that client.     
asked by 03.09.2015 / 22:23
1
answer

How to configure Context not to put table name in plural?

I'm in an ASP.NET MVC 5 application, setting up a DbContext class. When EF generates the database, the tables for the application objects are getting the names in the plural. For example: public System.Data.Entity.DbSet<Teste.Mode...
asked by 15.03.2014 / 22:50
2
answers

Open View with Parameters [duplicate]

I have this script: $('#Musico').change(function () { var id = $(Musico).val(); var url = '@Url.Action("Votar","Chamada")'; var tipo = 1; $(function ChamaVotar() { $.post(url, { id: id, tipo: tipo }); });//Functi...
asked by 25.11.2016 / 00:31