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

1
answer

Transcribe SELECT for query expression LINQ

How can I reproduce the following query for LINQ expression? SELECT nome_empresa, Count(funcionarios.id_funcionario) AS qtdfuncionario, Count(id_colaborador) AS qtdcolaboradores FROM empresas JOIN func...
asked by 29.07.2015 / 16:08
1
answer

How to communicate a local application with a web page opened in the browser?

I have a commercial web application that runs basic operations of a restaurant. In short, a waiter accesses the 'orders' page and requests a new 'product'. These products are categorized by departments, and each department has a printer (thermal...
asked by 29.10.2014 / 17:14
1
answer

A3 Certificate in ASP.NET MVC and IIS

I have an ASP.NET MVC4 application and I use the following code to read the user's A3 (reader or pendrive) certificate: var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.OpenExistingOnly | OpenFlags.Max...
asked by 30.08.2016 / 16:57
4
answers

Access javascript variable in loop with model

I'm creating an Asp.Net MVC project and found a problem in View. See the code: <script> var data = []; for (var i = 0; i < '@(Model.Count())'; i++) { data[i] = { "source": '@(Model.ElementAtOrDefault(0).Source)',...
asked by 09.04.2015 / 13:56
1
answer

ASP.NET MVC 4 Query Portal

Work at a service company. In the company we have hundreds of Oracle and SQL-Server databases of all clients. These banks contain information on the equity items in that company as well as other business and financial information. As the work is...
asked by 30.03.2016 / 20:58
1
answer

Controller routing and actions in lowercase

How to make the controllers and actions routes all in lowercase? For example: instead of Noticias/Details get noticias/details .     
asked by 31.07.2015 / 14:38
1
answer

Architecture ASP NET MVC project

What would be the best way to store user files according to the requirements below: The user can send one or several files at a time; The types of files supported by the application are: mp3, jpg, png, xls, doc, ppt and pdf; The architec...
asked by 27.03.2014 / 02:50
3
answers

Send All CheckBox via Post

I'm trying to send all the CheckBox from my View, however, I can only send the ones that are selected via FormCollection Controller public ActionResult Index() { List<ListaCheckBox> listacheck = new List<ListaCheckBox>();...
asked by 29.04.2016 / 17:47
1
answer

A dynamic field for each database record

I have a property called ProductDevelopment where I have several functions and must assign a user to each function. I have an EditorTemplate to return a list of users. I have to dynamically create a field for each function registered in the data...
asked by 18.08.2015 / 17:40
1
answer

Metadata Include - MVC - working with insertion of data into two tables

I have two classes: User UsuarioP where Usuario has its id (PK) and UsuarioP has id (FK) of Usuario . I'm working on ASP.NET MVC 4 using Fluent API. The classes are mapped inside the project t...
asked by 27.09.2015 / 22:50