Questions tagged as 'mvc'

1
answer

C # - Multiple keys in JOIN LINQ Lambda Expressions

I have an SQL like this: SELECT * FROM KY_AR_SOLICITACAO A JOIN KY_AR_SOLICITACAO_ITEM B ON A.NF_ENTRADA = B.NF_ENTRADA AND A.SERIE_NF_ENTRADA = B.SERIE_NF_ENTRADA AND A.NOME_CLIFOR = B.NOME_CLIFOR And in my ASP.NET MVC project, I want to m...
asked by 05.10.2018 / 13:36
2
answers

What is the correct way to send a form to a controller via AJAX?

I have a simple form, which is basically my ViewModel. I'm doing a post via AJAX passing this form, but on the server side, everything is always null. My AJAX is as follows: var formData = $('form').serialize(); $.ajax({ url: '/configuraca...
asked by 03.10.2017 / 18:14
2
answers

ASP .NET MVC 5 - DropDownList with ModelState?

I'm developing a registration system using MVC5 with DAO , however there were some doubts that I could not solve. I have a table where I register Projects and another where the types of Projects are: Table: Projects Fi...
asked by 21.08.2017 / 23:42
2
answers

MVC Doubt on Android

I would like to know the following in Android development using MVC, for each Activity I have to have a Controller and maybe a DAO? Or can I use the same Controller class that controls two Activity? And does it lose a lot of performance or do it...
asked by 24.08.2017 / 16:31
1
answer

Controller can have private methods?

I have a question and wanted to hear more people's opinions. Following the MVC , can a Controller have private methods? This question came to me because in my context, I have a Controller JS , and my View is an HTML page. Well, if Contro...
asked by 26.05.2017 / 18:48
2
answers

How to display the GetAll data I performed in an HTML table? MVC C # HTML

I'm running a simple mvc site, by college. I have to make a crud. I created a getall method that lists all existing clients in a list. How can I step the same for the view? I tried the line below but I can not use .. @model List<cliente&...
asked by 22.11.2016 / 03:49
2
answers

CRUD with MVC and DAO in PHP

I'm starting with programming and I'm doing a CRUD with MVC and DAO. I would like to know if the form I'm doing is correct, what could be improved and how do I call the method of inserting the ProductController in the form. <?php class...
asked by 14.11.2016 / 19:03
1
answer

Bundle problem on the server

Good morning, I was implementing the use of bundle in my ASP.NET MVC project, in the development environment worked perfectly. But when I go to the server it does not work. I was debugging in the browser and it gives the following return: "Resou...
asked by 07.07.2016 / 16:33
1
answer

Many relationship to many ASP.NET Entity Framework

I'm having trouble making the relationship between my tables using EF. At the time of creating a Maintenance Order, I need to list the data registered in other tables, such as Equipment, Tasks and Person, as I try to represent in the class be...
asked by 29.10.2016 / 03:15
1
answer

Remove Report Viewer Border

I have tried in several ways to remove this border that appears in the report viewer, and I did not get it at all. BelowispartofmycodewiththepropertiesIaddedtoremovetheborder:viewer.SizeToReportContent=true;viewer.Width=System.Web.UI.WebCont...
asked by 28.12.2016 / 19:18