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

1
answer

Field of decimal type Entity Framework ASP.NET MVC

I have a table named Pecas where only has name and value, but when I click on create new piece is not saving in the database, the msg that was added but not inserting, the debug shows the name but the value always it's coming 0 no matter what th...
asked by 30.01.2018 / 02:09
0
answers

ASP.NET MVC: Problem assigning decimal value

ViewModel.cs Tab [Required(ErrorMessage = "A altura é obrigatória.")] public decimal Altura { get; set; } ficha.js $("#Altura").mask("9.99"); Controller.cs Tab [HttpPost] public ActionResult Cadastro(FichaViewModel fichaView) { i...
asked by 07.12.2017 / 16:00
1
answer

Missing Session after requisition

Well guys, I have a problem that I have not been able to solve until now. It only starts to occur after an ajax request , where I generate a document and return it to url in a json , to be fetched in javascript , be assigned to a link and b...
asked by 16.11.2017 / 13:16
1
answer

Get link from an image saved in bd

I'm developing an ASP.NET MVC project using C #. I have a page with a share button with facebook. The sharing button is already working, however I'm having problems because of the image tag, because it only accepts hyperlinks of images....
asked by 27.10.2017 / 13:00
1
answer

vb.net- An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException'

I created a delete but when I run the error it gives me: An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException', I have looked for help, but everything that appears is for #C, I need a solution for VB. I think the probl...
asked by 03.11.2017 / 17:53
2
answers

Open modal through ActionResult in MVC

Hello, I'm building a registration page with MVC .NET and I'm having a hard time. I want to validate the information filled in, if they are correct, I will follow the flow of the application but if not, I want to open a modal jquery warning the...
asked by 22.10.2017 / 19:39
1
answer

How can I mount an upload page, which can receive photos, video and zip packages containing photos and / or videos?

I am like an application where the registered user has a page of uploads of images and videos and wanted to know if he has, as well as receiving photos and videos by uploads, if I can receive zips packages with photos and videos, where applicati...
asked by 16.10.2017 / 00:47
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
0
answers

Select combo box or dropdownlist google maps

I'm using google maps in an application that is saving everything ok, but a question arose how could I select a combo box by state, and all the records that are in my table with that state appear on the map? I tried to send an object in...
asked by 12.09.2017 / 02:02