Questions tagged as 'asp.net-mvc'

1
answer

How to publish a site in Locaweb with application made in ASP.NET MVC?

I have an application made in ASP.NET MVC, I want to publish in the company "LocaWeb", see the following image: Followingerror:  Anerroroccurredontheserver.Thecurrentcustomerror  settingsforthisapplication  errorfrombeingviewedremotely(forse...
asked by 13.04.2018 / 23:24
1
answer

List Bank result in checkbox with AJAX and JQuery

I have a function that searches the database for an entity list and shows it in select. However, I need this same list to be shown in a checkbox where the user can select more than one option. Showing this list of results in < input type="checkb...
asked by 05.06.2018 / 15:43
1
answer

Position focus on a modal window field - JavaScript and Asp.net MVC

I have a view model that has a block that opens modal windows for CRUD actions. I have 4 partial viewls: create, delete, details and edit ... All in common have the field Description (Description). I need to make sure that whenever the modal win...
asked by 11.05.2018 / 00:26
1
answer

View call @ controller model [closed]

I use EF Design and I import all my models from the bank to .EDMX . I ask: How do I call the controllers objects I create within a View ? I have tried to put @model up to controller and it will no...
asked by 06.01.2018 / 02:13
1
answer

How to use a hyphenated parameter in an HTML Helper?

Hello, I'm using the ASP.NET MVC Data Annotation in the C # language, but I'm not able to pass data-toggle on helper CheckBoxFor : @Html.CheckBoxFor(model => model.ReceberEmail, new { @class ="fo...
asked by 14.12.2017 / 14:05
1
answer

How to clean an @Html.TextboxFor using JavaScript?

I'm trying to clear the value entered in the TextBoxFor field from the following form shortly after the submit. @BHS_Treinamento.WebApi.Models.Curso @{ ViewBag.Title = "Cadastrar"; } <h1>Cadastrar</h1> @using (Html.Be...
asked by 23.02.2018 / 19:32
1
answer

ASP.NET MVC - Label does not display because of the "dot" character at the end of the name parameter

I had a problem where a label did not appear on the page I was creating with Razor. I discovered that the problem was because the parameter "string name" had a dot at the end. I would like to know if this is an ASP.NET bug or if you have some...
asked by 30.11.2017 / 21:12
1
answer

Develop an MVC project with Web API

Someone asks me to develop an application in MVC with various technological elements like Angular, Bootstrap, Entity and etc. I then create a Web API project, can I guarantee for this person who is developed in MVC? This is just conceptual.    ...
asked by 06.12.2017 / 18:16
1
answer

Communication between MVC Controllers

I'm having trouble communicating between Controllers each in a different Area , the public methods of the second controller are not available in the first one. Is there any way to do this? Here's the example below: public class AController...
asked by 21.10.2017 / 06:46
1
answer

Go to a new view with JSon

I am doing a delete with Ajax and returning a JSon. How do I open a different view? Here is the code, I put the url but it does not work: View $.ajax({ url: '@Url.Action("ExcluirPedidoCompra")', // to get the right path to controller...
asked by 26.11.2017 / 23:49