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

0
answers

MVC Component for Google Maps

I'm currently using the Googlemap control for Asp.Net MVC component. to render maps from GoogleMaps. I'm using this component because I'm going to have to trace the route of a vehicle coming from the database via model, then I'll use the co...
asked by 17.11.2016 / 22:35
0
answers

How to configure OwinContext Authentication in SimpleInjector 3.3.2?

In my current application I use SimpleInjector 3.2.0 with a configuration similar to this: var container = new Container(); container.Options.DefaultScopedLifestyle = new WebRequestLifestyle(); container.Register<IUserStore<Usuario>&...
asked by 26.01.2017 / 22:44
1
answer

How to pass a txt file to a Stream parameter?

How to pass a txt file to a Stream parameter? This is the ActionResult that calls the method to read the file txt : [HttpPost] public ActionResult Incluir(ContaReceberViewModel pContaReceber,...
asked by 10.03.2016 / 20:44
1
answer

How to save additional data in the database?

I am performing a user registration, but I am only able to save the Username and Password in the database. How can I save the LastName together? Below is my controller with your Actions. using ProjetoProtocolo_TCC.Models; using...
asked by 29.11.2015 / 19:31
1
answer

How to use JSON in ASP.NET MVC

I'm a beginner in Asp.Net MVC, and I'm developing an application that manages Courses and on my sign up screen I'm trying to validate that if student is already signed up in a course and he tries to sign up again in this same course , a...
asked by 01.07.2015 / 05:48
1
answer

Decrement in an ASP.NET MVC table field

I'm developing course manager in asp.net MVC , and the course table has a qtd_vagas field. I would like to know how I can do a count - ( or some other form of Decrement ) this field. For example: In the list of courses will appear the cours...
asked by 19.05.2015 / 05:45
0
answers

MvcSiteMapProvider with ajax

So I'm trying to set up a menu through ajax requests using the MvcSiteMapProvider, but when I try to access my CurrentNode in my ajax request, it's giving as null My ajax request $.ajax({ url: '@Url.Action("Men...
asked by 04.05.2015 / 22:29
0
answers

Doubt on how to use Layered Identity

I created an AspNet MVC project with Identity to understand how the Identity part works. I made changes to the code, including roles and claims. I migrated this project to a company project, but the project is all done in layers (MVC, Business,...
asked by 15.07.2015 / 14:25
2
answers

Fill fields with json function return with jquery

I have this method on the Controller [HttpPost] public JsonResult PreencheEndereco(string _cpf) { AgaxturCmsEntities db = new AgaxturCmsEntities(); try { var Result = (from a in db.TB_CLIENTES where a...
asked by 13.03.2014 / 23:45
2
answers

How to get Id on the return of a Post in the Api Web?

I have this code in Web Api : [ResponseType(typeof(Menu))] public async Task<IHttpActionResult> PostMenu(Menu menu) { if (!ModelState.IsValid) { return BadRequest(ModelState); }...
asked by 07.06.2014 / 00:29