Questions tagged as 'asp.net-mvc'

1
answer

Asp.Net MVC Tabs x Asp.Net WebForms Ajax Toolkit

Does anyone know of any technique for creating and manipulating server-side tabs using AJAX with Aps .Net MVC strong>? I look for something very similar to the Asp.NET WebForms tabs tabs that manipulate the tabs in code-behind and the...
asked by 17.10.2014 / 19:26
1
answer

Load records from different tables as anonymous type entity framework

How can I load multiple table data in the Entity Framework? By RAW Query I get normal, but by the Entity Framework I'm not getting to the point. What do I need to select the last entry that contains a specific product (I will pass the...
asked by 29.08.2014 / 15:48
1
answer

Error saving list of MVC objects C #

According to the post Edit list of objects with form POST in MVC C # I was able to make my application show the values. But trying to save the data gives the error: The operation failed: The relationship could not be changed because one or m...
asked by 27.08.2014 / 20:34
1
answer

Retrieving MultiSelectList MVC values

I'm not sure how to handle data received via MultiSelectList . Also, I can only select more than one option in View if I press CTRL. Is there a way for the user to click on more than one value without necessarily holding the key?...
asked by 08.08.2014 / 15:52
1
answer

DropDownList and ListBox - Retrieving Values in Editing

In a CMS I have a DropDownList and a ListBox that work regularly in the registration field, but do not bring values in the edit field. View <div> Tipo de Curso<br /> @Html.DropDownList("TipoCurso", ViewDa...
asked by 23.10.2014 / 19:21
1
answer

How to "call" an ASP.NET page without using IIS?

I need to get through the programming, the result of processing a page in ASP.NET, but I can not use IIS. Pseudocode that I need: processePagina("c:\caminho\para\meu\aspx\index.aspx", "url.ficticia?param1=valor1.....") This co...
asked by 06.09.2014 / 15:42
2
answers

How do I direct an Action to a view within a folder?

In my Controller UGController I have an Action named Cadastro that takes me to the View Cadastro.cshtml that is in the UG folder. That is: Controller: UGController Action: Cadastro() Link: /UG/Cadastro View: /UG/Cadastro.cshtml So norm...
asked by 22.07.2014 / 16:38
1
answer

Linq returns result, but does not obey join

We're getting close. With that code, it almost worked. Then I changed the % from% to Distinct() and did not repeat, but still does not obey the DistinctBy() . What comes in linq does not match query . In all Reasons I brough...
asked by 24.09.2014 / 13:06
1
answer

How do I put a count in a linq that returns a list

I need to make a count , for the following situation. See the image below, which I have repeated some pharmacies, see their CNPJ (06626253003681 and 06626253001476 ). They are repeated because they are on different dates. What I need is t...
asked by 24.09.2014 / 20:43
3
answers

Context in services and repositories

In the company I work with we use asp.net mvc divided into 2 projects: web - (base) service - (business rules) In several places I've noticed other programmers using the direct context (which extends DbContext) in the services and I...
asked by 29.08.2014 / 20:41