Questions tagged as 'asp.net-mvc'

2
answers

Edit Image in database when field is empty [closed]

I have a code that uploads an image. In the database worked beautifully. Now I need to make a code that only changes the image when it is selected. That is, in my case, when I change a record, you must have to select the image field. Otherwise,...
asked by 25.09.2015 / 14:08
1
answer

How not to lose the data included in the Claims in the revalidations of Cookies?

I have an application that I need to control the access of the users that are according to the profile of each one. Empresa , Filial . In the User entity I have added the fields referring to these two other entities and in them w...
asked by 29.09.2015 / 15:32
1
answer

IIS 7 - Error 403 Forbidden: access is denied

I have a webservice restfull and when I debug on my machine with my Visual Studio it works normally, but when I publish to my production server with IIS 7 it gives an access denied error. My project is in mvc , but if I put a...
asked by 29.09.2015 / 13:34
1
answer

Is it possible to validate the import of an excel file with regular expression?

I'm importing an excel file using asp.net and validate to see if it's really an excel or not. I do not want to use if and else , so I'm trying to do this through annotations . My main idea now is to use regular expressions , I...
asked by 15.12.2015 / 20:49
1
answer

Sending post to ActionResult via knockout

Personal speech, following: I'm trying to send post using ko , to a ActionResult method of my controller instead of a JsonResult as usual. When debugging the project it goes into ActionResult but does not open...
asked by 24.09.2015 / 00:38
2
answers

Error with System.Web.WebPages.Razor.dll

I tried to install the package install-package microsoft.aspnet.mvc.pt for the Portuguese javascript and my application started to run no longer, giving error where everything indicates that it is with Razor, I have tried everything , until you...
asked by 21.09.2015 / 18:23
1
answer

How to implement the jQuery Filer Plugin?

I'm trying to implement a component for uploading images with thumbnails, and I've spent a lot of time looking for one that fits my need. After a day of searching I found the jQuery Filer. Anyway, I'm having difficulties with the implementati...
asked by 21.09.2015 / 23:04
1
answer

LEFT Outer Join does not work in LINQ when 0 is the reference? only null

I'm having doubts on Left Outer Join, I'm using MVC 5 C #, Net 4.5.2. I have the Next Model Supplier public class fechamentoFornecedor { public int FornecedorId { get; set; } public int Tipo { get; set; } publ...
asked by 26.02.2016 / 15:09
2
answers

Does not show the 1 row of the empty array using angularJS asp.net mvc?

I have the following code: <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--inserindo a meta tag de keywords onde definimos as palavras chaves--> <meta name=...
asked by 30.12.2015 / 03:07
1
answer

Question with asp.net MVC parameter passing

You are calling the controller but you are not calling ActionResult, I have my view: @model IEnumerable<Generico.Dominio.TB_MENU> @{ ViewBag.Title = "Index"; } @Html.Partial("_navbarInterno") @Html.Partial("_PartialLogin") <...
asked by 28.12.2015 / 23:18