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

1
answer

Problem has no key defined. Define the key for this EntityType

Tested having problem with relationship between department and employee tables This returning 2 error: - "EntityType '' has no key defined. Define the key for this EntityType." -Official 'is based on type' Official 'that has no keys defined....
asked by 11.11.2017 / 15:29
2
answers

Save Image in VARBINARY with C # ASP.NET

How do I get an image received on a Form of HTML and write to the bank in VARBINARY with C# ? I'm using C# ASP.NET MVC5 CORE .     
asked by 30.11.2017 / 11:24
1
answer

How to pass the Model to the controller via JQuery

Is it possible to pass the filled Model to the controller via jquery, without having to create a variable and populate it with all fields? Example: I have a modal popup that opens a partialview with several fields. In this view I have the...
asked by 31.08.2017 / 16:48
1
answer

How to sort the dropdownlist?

How can I sort the DropdownList ? <div class="form-group"> @Html.LabelFor(model => model.id_pessoa, "Pessoa", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10">...
asked by 18.06.2017 / 16:27
1
answer

question of multiple choices in APS MVC 5

I'm developing a project where it will have multiple choices. My problem is that I am not able to show only the questions I want, for example when clicking on the questions the user will be presented with the question number 1 with the questions...
asked by 15.06.2017 / 22:00
1
answer

How to implement w3c byte range requests?

The video plays right. But I can not skip the video time. Example: Skip time from 05:00 to 10:00. It just keeps running, and I can not seem to skip the time. I searched the internet and said that it has to make flow or range or buffer....
asked by 06.04.2017 / 07:35
1
answer

Can not implicitly convert type list to an object

Good evening, I'm doubtful of the following error:    Can not implicitly convert type   'System.Collections.Generic.List'   to   'ITCore.FlowCredit.Business.Entities.ProductAmortizacaoCreditoDiasSearch' The Code: private void LoadDia...
asked by 07.02.2017 / 23:42
1
answer

Helped to pass an array via Ajax (post) to MVC 5 controller

I have this code that is generated dynamically by javascript. Simulating a grid <tr class="produto"> <td class="info-CodBarras">123</td> <td class="info-Des...
asked by 24.02.2017 / 22:52
2
answers

Problems saving a selected item in Dropdownlistfor using a ViewModel

I'm trying to save a change I try to make by selecting a Category in a Dropdownlistfor . Type like this: I'mfollowingtheDebugandtheViewissendingtheselectedCategory,butIcannotcontinuethischange.MySubcategoryControllerlookslikethis://G...
asked by 22.02.2017 / 17:37
1
answer

Apply CSS Style to Razor elements eg EditorFor

How do I apply a style to all EditorFor of my View ? Example field : @Html.EditorFor(model => model.Photo, new {htmlAttributes = new {@class = "form-control"}}) I tried to do this but did not: <style> Html.Ed...
asked by 14.12.2016 / 23:31