Questions tagged as 'asp.net-mvc'

2
answers

Hide different actions for different user profiles

I am in a project where I have 3 different levels of profiles: Administrator , Teacher and Coordinator . I already have the login module, registers and such. What happens is that I wanted for each profile type to appear only what is allowe...
asked by 25.05.2014 / 03:15
2
answers

How do I give a sort in my dropdownlist

How do I sort in my dropdown? This is my dropdown. How do I sort it out? Calling DropDown <select class="form-control col-sm-6" name="cbxCodTipo" id="cbxCodTipo"></select> Of course I'll upload the values, but I just want t...
asked by 18.08.2014 / 21:44
2
answers

In an architecture, does the number of DLLs influence performance? Scalability?

I have the habit of creating my solution like this: Entity - Class Library (Classes, entities) Utils - Class Library (Classes of help, security, generate xml, anyway, functions of all kinds) Repository - repository pattern...
asked by 04.04.2014 / 15:47
1
answer

Default ASP NET MVC

I'm learning ASP.NET MVC and would like to learn about design patterns, I have a lot of questions on how to build my Solution. I would like to know the default names for the Solution, folders, layers, projects, know where to get the dbContext...
asked by 18.04.2016 / 21:30
3
answers

DataAnotation Attribute for Currency

I would like to format with DataAnnotation currency but default en in the model: [Column("cur_mensalidade")] [DataType(DataType.Currency)] [DisplayFormat(DataFormatString = "{0:C0}")] public decimal? Mensalidade { get; set; } but does no...
asked by 03.05.2016 / 14:34
1
answer

In a checkbox list, know which ones are checked

In my application I'm printing a list of data coming from the database, and in each item in the list I'm putting a checkbox, as the following image shows: NowwhenIclick"Start Copy" I want to select the items in the list that are selected, and...
asked by 15.04.2014 / 13:18
1
answer

What is the difference between Ajax.BeginForm and Html.BeginForm in Asp.net MVC

Working with web in asp.net mvc , I saw that it is possible to use Ajax.BeginForm() and Html.BeginForm() . What is the difference between Ajax and Html ?     
asked by 08.07.2016 / 23:38
2
answers

Handle and model Json object

I have a JSON object with the following structure: [{ "Codigo": 7, "Descricao": "Atividade 1", "CodigoMilestone": 6, "TempoRevisado": 2, "Inicio": "\/Date(1445738400000)\/", "...
asked by 30.10.2015 / 20:57
1
answer

Problem with Nuget Packages Visual Studio

Trying to compile the application, I come across the error:    Severity Code Description Project File Line Suppression State   Error This project references NuGet package (s) that are missing on   this computer. Use NuGet Package Restore to d...
asked by 15.02.2017 / 18:22
2
answers

How to save changeable parameters in the system?

I have an ASP.NET MVC project and I use web.config to save some parameters that will be used by the system, but should not be changed by any users. Now I have to implement some other parameters that can be changed by users, without ha...
asked by 09.11.2017 / 20:37