Questions tagged as 'asp.net-mvc'

1
answer

what is the correct way to login to log in simultaneously with asp.net?

I have this static class to have the user data but it is a desktop design because I realized that the resources are shared by the web. if you start other users, the session is overwritten public class Authweb { private Authweb() { }...
asked by 21.02.2018 / 04:05
0
answers

Problems to pass HttpPostFileBase (Asp .Net MVC) between different views

I am currently working with ASP .Net MVC building a registration form to a site. This form is very extensive and consists of several "steps", I have defined for each step of the registration a method within the controller that returns the cor...
asked by 01.03.2018 / 00:35
1
answer

DataAnnotations [Required]

I have this ViewModel: public class ActividadViewModel { [Required(ErrorMessage = "Debe ingresar el tipo de actividad")] [Display(Name = "Actividad")] public string TipoActividad { get; set; } [Required(ErrorMessage = "Debe in...
asked by 23.02.2018 / 04:14
1
answer

how to validate checkbox selected in asp .net mvc5 for login?

Hello, what I need is that with the user registration form provided by the .net mvc5 the user can register successfully only if, only if he selects a textbox to accept terms and conditions (as is commonly seen in registration forms) ) I really d...
asked by 19.02.2018 / 08:29
1
answer

PegedList with more than one class

I have three tables mapped with the Entity Framework: teachers, classes, and enrollments. I need to show some fields of the teachers and some fields of the classes and show the result in a view using a PagedList if I put it in the following way...
asked by 04.03.2018 / 23:26
1
answer

Syntax error when using new paragraph

I have a Javascript function like this: <script> $(document).ready(function () { if('@TempData["Message"]' != "") { $("#myModal").modal(); } }); </script> Its function is to open a modal in ca...
asked by 04.03.2018 / 21:58
0
answers

Connect default ASP tables. NET Core with new tables (MVC)

By default when an asp.net core project is created, it generates tables with procedures to have a login system. What I did was create two more tables with their controllers in order to have a calendar system. What I need is to know how...
asked by 16.02.2018 / 15:48
1
answer

EF Core Generic Repository error with GetById method

I have a generic repository for my crud in netcore, but I have a problem with one of the methods. The method is GetById public async Task<TEntity> GetById(int id) { return await _dbContext.Set<TEntity>()...
asked by 07.02.2018 / 15:31
0
answers

App cache does not work on internet explorer

Good morning I am developing a web app on asp net mvc, which has certain modules offline, I developed it using the api of html5 for offline mode. including an .appcache file like this: offline.appcache CACHE MANIFEST # 2014-09-15:v1.1 # Expli...
asked by 12.02.2018 / 16:33
0
answers

Start on the first page, Listview de Telerik

I am using the Listview control of Telerik for MVC, on my page I have a Dropdown where the user can select a value, and depending on the selected value is the information that is consulted and displayed in the Listview. If a query returns a l...
asked by 16.02.2018 / 17:55