Questions tagged as 'asp.net-mvc'

1
answer

Button in a View with MVC / Web API

When we put a button in a View, how do we trigger a click of it? I have this button: @model IEnumerable<CarregaDados.Models.Cliente> @{ ViewBag.Title = "Index"; } <h2>Index</h2> <p> @Html.ActionLink("Criar Usuá...
asked by 19.10.2017 / 16:25
1
answer

Vertical Scrollbar in DIV in ASP.NET

I have a form inside the content2 of the masterpage. Is it possible to insert it inside a div with a vertical scrollbar that descends only the form in question? What is the simplest way to do this?     
asked by 15.10.2017 / 02:11
1
answer

Is there any way to load Script or CSS that is placed in Buddles in ASP.NET only in a single View?

Generally when I download the plug-in in Visual Studio in NuGet, it is necessary to put script and css in Buddles however these scripts are loading in all my Views even those that are not using, so I wonder if there is any way put these Scripts...
asked by 07.10.2017 / 21:10
1
answer

Error while executing Migrations

Friends, I have two DeliveryFee and City entities, where DeliveryFee has a City FK, when I went to remove the relationship between the two and I managed the Migration it returned the following error.    'FK_dbo.DeliveryFees_dbo.Cities_Cities_...
asked by 02.10.2017 / 19:58
0
answers

Call Controller Search Action

I have an Action in My controller that calls a Service that does a Search using Stored Procedure and returns me a List. I made the form in the View to call this Action, only it is not calling Follow the Codes for each Process Search Form &l...
asked by 02.10.2017 / 14:27
0
answers

ASP.NET MVC system does not bring newly registered data, only the oldest data on the production server

I have a system developed in ASP.NET MVC that has a registry of authors. The system works normally on my machine but when I upload it to the production environment it only brings back only the oldest records in the data list. The data...
asked by 02.10.2017 / 15:05
1
answer

Uploading files (images) in ASP.net does not send the image

I can not send images (banners) in my asp.net application My controller: [HttpPost] [ValidateAntiForgeryToken] [ValidateInput(false)] public ActionResult Save([Bind(Include = "BannerId,DatHorLan,Tit,Atv")] Banner banner)...
asked by 02.10.2017 / 03:07
1
answer

Registering attributes of different classes in the same View [closed]

I have a Teacher class that has a User, and I want to register the User fields in Teacher View. How can I do this? public class Usuario { public int Id { get; set; } public int Matricula { get; set; } public string Nome { g...
asked by 13.10.2017 / 19:49
1
answer

The parameter dictionary contains a null input

I have a problem that is as follows, I am consuming a service where it receives a parameter as input, in the
asked by 27.09.2017 / 14:41
0
answers

Error creating controller using Entity

In my Employee Master project I have the following folders: MODEL CONTROLLERS DAL VIEWS From the moment I create a controller using Entity that already creates my view directly, it gives the error:    (Error executing the sel...
asked by 26.09.2017 / 21:39