Questions tagged as 'asp.net-mvc'

2
answers

How does the communication between the layers in MVC work?

I started to study MVC, but I'm still in theory and I was wondering how the conversation between the layers works in practice. Could anyone give an example C # code without using the MVC framework? Note: Before I suggest, I've already seen th...
asked by 14.05.2014 / 19:50
2
answers

Plugin to upload multiple pictures

I have the following classes in my project. Galeria and Fotos I have ViewModel where I get the data of Galeria and data of Fotos . When submitting (submit normal, not asynchronous), save Galeria...
asked by 17.05.2014 / 22:46
1
answer

Problem with grunt-uncss

I would like to know if it is possible to read a .CSHTML file with grunt-uncss, because I searched and tried and so far I have not had any results.     
asked by 21.10.2014 / 19:05
1
answer

Make a SQL query with Entity Framework 4

How do I perform a query on the database using Entity Framework 4 by passing a previously stored string within a StringBuilder . The reason is that the SQL query string is giant. I know it is not a good practice, but for now I will ha...
asked by 16.06.2014 / 20:48
1
answer

Bundle does not work when I publish the site

I'm using BundleConfig.cs in my project to reference the JS and CSS libraries. Here are some examples: bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Content/Scripts/bootstrap/bootstrap.js")); bundles.Add(n...
asked by 19.07.2016 / 19:17
2
answers

@ Html.CheckBoxFor Works on GET, but not on POST

I have the following model: public class MEUViewModel { public List<Obj1> Obj1s { get; set; } public List<Obj2> Obj2s { get; set; } public int IDMeu { get; set; } public int IDMeu2 { get; set; }...
asked by 22.07.2016 / 15:11
1
answer

join for search field

I asked another user but I do not know what happened that I could not recover the information and had to create another one now. Anyway, I wanted to create a search field and gave me the controller and view answer below: public class HomeCon...
asked by 12.06.2014 / 17:34
1
answer

List of objects back zeroed View even with Hiddenfield

public ComprasOrdemCompras GetToCreate(ComprasOrdemCompras model, int EmpresaId) { ComprasOrdemComprasProduto clsPedidoProduto = new ComprasOrdemComprasProduto(); //Preenchi meu produto INÍCIO // FIM...
asked by 10.06.2014 / 17:48
1
answer

Create a record and add relationship through httpPost of Web Api

When creating a new record in the tab I need to get the id of my main screen and send it along with the new object. Currently I have this code: public async Task<IHttpActionResult> PostMenuProduct(MenuProduct MenuProduct) {...
asked by 06.06.2014 / 18:28
1
answer

Updater of a web application asp.net mvc

I was thinking here of a structure for automatically updating my web systems on clients, so I thought I'd use ClickOnce with some dodges (technical adaptations). It did not work, it only works for Windows-based applications....
asked by 08.04.2014 / 16:57