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

2
answers

How to create a name for checkbox created with mvc helper

How do I use the mvc helper to create a chekbox and with its name attached to the checkbox. And if there's any way I can put the checkbox name on the left or right. I did it and it did not work: <td>@Html.CheckBox("Acesso Remoto")</td...
asked by 15.05.2014 / 18:28
1
answer

Block access to files in certain directories if they are not authenticated

How do I block certain directory access if it is not authenticated? For example I have my url www.mysite.com/login The user is not yet authenticated So I do not want it to be able to access any .js file, image, .css directory w...
asked by 12.07.2014 / 03:39
1
answer

How to add fields dynamically and link them to the viewmodel in Asp.Net

I have a 1: N relationship between Person and Contact. In my view, I can list all the contacts of a client when it is opened. Ineedtoimplementthe"New Contact" button so that when clicked, dynamically add the fields (Type of Contact, Contact,...
asked by 01.09.2018 / 12:47
1
answer

Asp.net MVC is it better to work with Areas or with Projects within a Solution? [closed]

I'm creating a portal and separating modules by Areas. But the demands are increasing a lot, there are at least 5 more modules to be written on the portal. What is the best way forward in terms of performace and organization? Continue in t...
asked by 17.05.2018 / 14:25
1
answer

Problems with embedding masks in PartialViews - Asp.Net Core

I'm having problems with bootstrap on all screens. I found the following interesting: All my Views that are returned in the form of "PartialView", the input masks do not work. For tests, when I create a View and a controller that returns a View,...
asked by 11.06.2018 / 13:14
1
answer

With identifying if the access is internal or external?

I have an application in asp.mvc that has 3 (three) access types, 2 internal and 1 external. Internal access is done by LDAP and the external one by a user table. No entanto o usuário externo também pode está na rede interna.(aqui é a xarada)...
asked by 14.05.2018 / 14:47
1
answer

Communication between MVC Controllers

I'm having trouble communicating between Controllers each in a different Area , the public methods of the second controller are not available in the first one. Is there any way to do this? Here's the example below: public class AController...
asked by 21.10.2017 / 06:46
2
answers

Razor form field validation

I'm using MVC5 Razor to create my forms, now I have a question for the validations of the fields of this form; Example: @Html.LabelFor(m => m.Nome, "Nome:") @Html.DropDownListFor(m => m.Nome, "Nenhum" , new { @class = "form-d...
asked by 26.10.2017 / 14:36
1
answer

Is it correct to use List with ViewModel?

I have ViewModel below: public class Crm_AnaliseViewModel { public string TAG { get; set; } public int ATUALIZACAO { get; set; } public string RELATORIOS { get; set; } } Then in Controler did: public async Task...
asked by 14.07.2017 / 23:27
1
answer

How to do security by profile with Asp.Net MVC?

I'm creating a system using Asp.Net MVC and before I start I need to do profile-based security. I will have several profiles each with an access option. For example: Administrator Profile (access all), Common Profile (restricted access), Advance...
asked by 02.09.2017 / 20:00