Questions tagged as 'asp.net-mvc'

3
answers

ASP.NET MVC Web - How to separate the performance between the modules of a project?

Explaining the doubt. Within my system there are some menus, let's use as example 3, naming them A, B and C, each being a CRUD module with some kind of report. If 300 people are using module A, it will impact the performance of module B, right?...
asked by 29.05.2017 / 01:29
2
answers

What are the model and model variables in a View?

What are the @model and Model variables in a view ? In my view I use this at the beginning of the code: @using Html5DataList.Models @model List<Estabelecimento> And to access the data, I use it like this: @foreac...
asked by 29.07.2017 / 15:45
2
answers

How to do query containing MAX and COUNT via LINQ

I have the following model : public class Crm_Analise { [Key] public int id { get; set; } public string cod_item_CRM { get; set; } public string TAG { get; set; } public string data_creat { get; set; } public str...
asked by 14.07.2017 / 13:26
3
answers

How to select value in Select

How to select a value other than the first according to an ASP.NET Razor C # variable. <select id="MeetingFrequency" name="MeetingFrequency"> <option value="0" selected disabled>Selecionar</option> <option value="SEM...
asked by 21.07.2017 / 14:19
2
answers

NewtonJson.Parse with quotation marks in the middle

I have a column of type varchar in the database that takes a JSON. This column is the description of a company, but in 4 languages. The logic I have is as follows: { "PT":"Descrição com "aspas" quebra o meu código", "ES":" "...
asked by 01.03.2017 / 16:10
3
answers

Can not implicitly convert type 'string' to 'int'

protected void btnSave_Click(object sender, EventArgs e) { List<ProdutoAmortizacaoCreditoDias> aDay = new List<ProdutoAmortizacaoCreditoDias>(); ProdutoAmortizacaoCreditoDias ee = new ProdutoAmortizacaoCreditoDias(...
asked by 10.02.2017 / 18:57
2
answers

Modeling Models 1 to n

I'm modeling a system for Academies. I created 2 models, Modality public class Modalidade { [Key] public int ModalidadeId { get; set; } [MaxLength(200)] public string Nome { get; set; } [Newt...
asked by 22.09.2016 / 14:43
2
answers

How to standardize DateTime format for all type fields without using DisplayFor or EditorFor in MVC?

In many cases in the application we have to use something like: @Html.Raw(item.data.ToString("dd/MM/yyyy")) can not be DisplayFor nor EditorFor in any case and we have to show the Brazilian date format. How to standardize this...
asked by 15.09.2016 / 20:50
2
answers

Web pagination with C #

I'm building an administrative application, and in this application I have a messaging page. I'm currently bringing the last 20 messages. I already have the screen ready to receive this messages, but my problem is in making the button logic t...
asked by 25.08.2016 / 16:34
2
answers

What is the name of these parameters in ASP.NET MVC?

What is the name of these parameters in brackets used to restrict some access or define the protocol used, as in the example: [Authorize] and [HttpPost] . Is it possible to create a custom "filter"? for example, to allow access t...
asked by 29.02.2016 / 22:50