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

2
answers

Extend asp.net mvc 5 identity

I have to set up a login system and that this system can be reused in two mvc projects The model (according to the architecture) is as follows: User : usu, password, email Confirmed, etc. Client : userId, email, etc. Employee...
asked by 04.02.2016 / 06:35
1
answer

Postback in ASP net MVC 5 does not work after a JsonResult

Do a postback in jsonresult since I use a modal to delete in mvc 5 but it does not perform a postback .. [HttpGet] public JsonResult Eliminar(int id) { cargo carg = db.cargo.Where(x => x.idcargo == id).FirstOrDefault();...
asked by 29.03.2017 / 18:17
2
answers

How to get the value of an attribute in an html tag with JQuery

Friends What happens is that I need to capture the value of an attribute of an html tag in this case. <input class="btn btn-danger link1" type="button" value="Delete" data="@item.MunicipalityId" /> I have this tag inside a cyc...
asked by 13.06.2016 / 22:06
2
answers

download file from url with ajax and asp.net mvc 5

I'm trying to download a file from a URL with ajax and asp.net mvc 5 This is my controller: [HttpPost] public ActionResult DownloadDocument(DownloadModel model){ urlFile = "http://www.storage.net/data/pdf-xml/" + model.nombre.ToLower() + mo...
asked by 06.06.2016 / 19:47
3
answers

Object reference not set as an instance of an object. Asp.net MVC

Add two more fields to the beneficiary class and I made the migrations now it is showing me this error. //Model [Table("Beneficiarios")] public class Beneficiario { [Key] public int beneficiarioId { get;...
asked by 26.07.2016 / 17:10
3
answers

Error 404 when trying to make a httpget to an Action of a webapi controller

I add a controller webapi , the IDE is responsible for generating the class WebApiConfig and registering the configurations in the global.asax , until here everything is perfect. I run my application
asked by 29.01.2016 / 20:08
1
answer

Configure error pages from web.config or IIS with a subdomain

I can not show my error page when in url I have a subdomain and this page does not exist. In the configuration of my web.config I have the following: <system.web> <customErrors defaultRedirect="~/ErrorPag/Error500"...
asked by 15.05.2017 / 22:39
1
answer

Our site falls from time to time IIS Is it possible that it is a DDOS attack?

   Hello, we have a site, it works well most of the time but from time to time   when it usually gives a one minute drop, we are using IIS 8.5   as a server and we work all ASP.NET technology. Our servers are hosted at Rackspace and before...
asked by 10.01.2017 / 23:22
3
answers

Create a ModelBinder for KeyValuePairTKey, TValue

The default ModelBinder of ASP.NET MVC is not able to bind the data with variables of type KeyValuePair. This is due to the way it has to link the complex types: first it creates a new instance of the object through a constructor without argumen...
asked by 12.05.2016 / 12:52
0
answers

Use a table instead of multiple html with EmailService

I usually do this: Email Service: public void NewScholarship(Boolean isApproved, String name, String classificationDescription, String percentage, String dateStarting, String dateEnding, String description) { Subject = isApprov...
asked by 06.06.2016 / 04:10