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

1
answer

Data access in DAL with ASP.Net MVC Identity and Owin

Today my solution has an MVC 5 Web application project and a Data Access Layer (DAL) Library with EF DatabaseFirst. I want to create a layer with MVC Identity + Owin, however, I would like data access to be made in the DAL. How do I do thi...
asked by 25.09.2014 / 18:16
2
answers

How do I find out if the session has expired?

I need to find out when the session expires, in ASP.Net MVC, so I can show a modal and redirect. How can I do this? Is there anything in the% w /% of what I can use?     
asked by 19.08.2014 / 23:47
1
answer

ASP.NET Identity customize with own database

I already have my database ready with the login table, and I did not want to change it, so I would like to know if I can customize it with the tables I already have! and how to do it! Below the mapping of the login table in my database: pub...
asked by 12.08.2014 / 21:30
1
answer

When and how to use asp.net web api

I've been studying Asp.net MVC for some time, I've read about WebApi but I still can not figure out when and how I can use it. Ex: I have a small news system, where I have a area where the administrative part and the root projec...
asked by 04.07.2014 / 05:45
2
answers

Plugin to upload multiple pictures

I have the following classes in my project. Galeria and Fotos I have ViewModel where I get the data of Galeria and data of Fotos . When submitting (submit normal, not asynchronous), save Galeria...
asked by 17.05.2014 / 22:46
1
answer

Paste values from ContentEditable fields to send to POST

I am making a Carousel using Bootstrap . The dados that fed this Carousel will be modified a few times, so I decided to create a dados.json file to serve as the basis for these files. I made a classe...
asked by 20.10.2014 / 23:27
1
answer

Open a folder on the user's machine and open a file (csv, txt or xls)

How do I open a folder on the user's machine? I need to open the folder and load a csv, txt or xls file. I use MVC5 It would be more or less that. A button that loads the folder and then I give a load that would be like an upload, I think....
asked by 02.09.2014 / 12:54
1
answer

Updater of a web application asp.net mvc

I was thinking here of a structure for automatically updating my web systems on clients, so I thought I'd use ClickOnce with some dodges (technical adaptations). It did not work, it only works for Windows-based applications....
asked by 08.04.2014 / 16:57
1
answer

Use Identity in an Asp.Net MVC 5 application with Web Api and vice versa

When I create a project Asp.Net MVC with Individual User Accounts I can enter the application in this way: var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);...
asked by 10.09.2014 / 14:53
1
answer

How to make a script run only once?

I'm using Asp.net MVC In my layout I have a menu div I have the container div where my @RenderBody() is And below I have a script that rendeniza my menu: $(document).ready(function (e) { $(".Menu").each(function (index...
asked by 03.09.2014 / 16:00