Questions tagged as 'asp.net-mvc'

4
answers

Receive an array in the controller from javascript

I'm creating an array with a list of data in javascript: var myArray = gvSortingListagemGARs.keys; Where I have the result: [278, 279, 280, 281, 282] That are id's of elements of a Devexpress table. Now I'm trying to pas...
asked by 31.07.2014 / 13:09
1
answer

Add TextBox inside an HTML table with JQuery

I have the JQuery Script below which searches a Material and returns a list in Json of this materials, I need to put this data in a table and put a field for the user to enter the quantity of these materials, even putting in the Script so that t...
asked by 21.08.2014 / 21:16
1
answer

Asynchronous server responses, for AJAX route calls

I have an application that at the end of loading a page I make an AJAX request that takes about 20 seconds. After this request my page continues to function normally so when I try to make another AJAX request it waits for the first one to ret...
asked by 27.08.2014 / 18:55
1
answer

Does not return value pro javascript

I'm having a problem that the value coming from my controller does not come back to javascript. I'll explain what happens: I send requests via ajax to my controller and it is waiting for the return of values, while there is no return value...
asked by 22.08.2014 / 17:20
1
answer

Doubt about static methods and classes

I have a question about methods and static classes given the code below: static List<MaterialRCM> mr = new List<MaterialRCM>(); [Authorize] public void AddMaterial(int Qtd, int Id) { mr.Add(new MaterialRCM(...
asked by 25.08.2014 / 21:42
1
answer

How to print a View in default printer using JavaScript or C #?

I need to print the contents of a view on the default printer. How can I do this using C # or javascript?     
asked by 18.03.2015 / 12:28
1
answer

Develop standard template Razor - ASPNET MVC

I have an ASPNET MVC5 project using C # which, by design definition it was agreed that the layout of the page structure would be stored in the database. Within my _ViewStart would be referenced my _Layouts.cshtml that would be the common cont...
asked by 05.02.2015 / 13:09
4
answers

Generate xml through a class, even without value in the property

I'm generating an xml through an existing class, for example [XmlRoot("pessoa")] public class pessoa { //[CPFValidation] [XmlElement("cpf")] public virtual string cpf { get; set; } [XmlElement("nome")] public virtual strin...
asked by 21.02.2014 / 18:11
1
answer

3 layers vs MVC

3 layers: DAL (Where is the model and operations with the bank BLL (Where is the business rule) Presentation (Usually the WEB) An example: DAL public class AlunoBanco { public void InserirAluno(Aluno aluno){ ......
asked by 22.09.2014 / 01:41
1
answer

Edit data for a combo box

I'm having a problem with my application in ASP.NET MVC. What's happening is that when it comes to saving data, my combo boxes load data from enums. These combo boxes are from an application to a school, where the series / year, the class and th...
asked by 01.05.2014 / 19:51