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

1
answer

Publish ASP.Net site

I made my first test site in ASP.Net and when I'm going to publish it to my normal ftp (I'm using visual studio 2013) I open the domain link gets all these folders and such ... How do I publish it? What I have to do?     
asked by 22.07.2015 / 02:21
1
answer

DropDownList filled in and selected

I need to fill in a @Html.DropDownList () with the parameters of my Model and pre select one of the items. In the Model I'm getting the complete package, being: Product list in Produto and items selected through MotivosRel . M...
asked by 17.03.2017 / 14:12
2
answers

Error publishing site asp.net mvc 4

When you publish the site in iis 7.5, this error occurs when you try to open the site:    Multiple types were found that match the controller named 'Home'. This   can happen if the route that services this request   ('{controller} / {action}...
asked by 15.07.2015 / 15:27
1
answer

EF 6 Code First: Decimal field gives error when trying to save

Hello, good morning. I have a class that has a decimal field where I save the price. So far so good. When it is displayed in the / Edit / of the page, it is also beauty. But that's the problem: 1 - The MVC (which I am using 4 with EF 6) it di...
asked by 04.07.2015 / 10:30
1
answer

Error performing connection test in Visual Studio

I'm new to programming in ASP.NET, and I'm trying to connect to Visual Studio 2013 Express with SQL serves 2012 Express and I'm not getting results. I have done the following procedures; procedure 1. procedure2. procedure 3. Thepa...
asked by 06.11.2014 / 13:16
3
answers

Receive one Model per parameter in a function

I'm trying to get a Model in a function, which passes from a view (although I do not know if it's possible) to be able to generate a list and generate a PDF. My View : @model List<BDOleoTorres.Models.AutoDeclaraco...
asked by 26.03.2014 / 12:21
2
answers

Oracle DB and MVC 4 with error ORA-06413

I'm having a problem very similar to this here . In short, I have an application that runs with ASP.NET MVC 4, using the .NET Framework 4.0, using the same Oracle access DLL, the System.Data.OracleClient.dll Version 2.0.50727. I did wh...
asked by 22.05.2017 / 20:28
1
answer

Validation for TextArea using Razor MVC 4

I have the following modal and need to include validations so that the textarea is required when clicking the "Yes" button, that is, it can not be sent blank, and that textarea is at least 15 characters. @model TClient <di...
asked by 03.02.2017 / 19:27
2
answers

passing a complex object to MVC4 controller

I'm using MVC4 C #, I have a table that is dynamically generated according to the user's decision, in this format:  generated by js <tr class="itemPedido"> ' + '<td class="col-sm-1">' + '<p class="codigo">' + $(thi...
asked by 25.11.2016 / 16:55
1
answer

How to configure an Authentication and Authorization Server?

How to set up an authentication and authorization server like Google by Cookie, and then be able to make it available to ASP.NET MVC applications from the same group of web applications with the same user base? I've been trying to understand...
asked by 15.08.2016 / 16:34