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

1
answer

Get value of a Javascript function in a variable C # mvc5

I need to store what returns a JavaScript function inside a variable in a C # view with razor in mvc 5. For example, what this function returns: function fechafin(){ var ff = document.getElementById("ffin").value; return ff; }...
asked by 21.06.2018 / 06:02
0
answers

toggle checkbox with ajax

I have a web application with mvc where I have a toggle button to change the status (on / off) but I do not want to reload the entire page once the status is changed, also for some reason the data I need from the view for the controller do not p...
asked by 19.06.2018 / 17:34
0
answers

Can you customize the error message of a property of type int?

I have the following model public class UpdateViewModel { [DataType(DataType.PhoneNumber, ErrorMessage = "El campo teléfono particular debe ser un número")] [Required(ErrorMessage = "El campo teléfono particular es obligatorio")] [...
asked by 25.06.2018 / 17:06
1
answer

Pass a list from the action in my view in MVC 5

I have the following query in the Action Then in my Vista I try to show the table in the following way using @ item.cantRevised I would also like to know if in MVC 5 you can pass a list in this case consult with LINQ through t...
asked by 16.06.2018 / 20:44
0
answers

How to join several pdf in 1 single

I have the following problem, I am trying to join several pdf files in 1, I have a pdf url list and the idea is to mix them in one. I try this: The string list has: http://dlls.medezweb.com/resources/432714927725926.pdf http://dlls.medez...
asked by 21.06.2018 / 23:24
1
answer

Why do you create a cookie with name ASP.NET_SessionId?

I have a project in ASP.NET MVC 5 in which when reviewing the cookies of my application there is one that is called ASP.NET_SessionId , which does not stop what it is and why it is created. Does anyone know anything about this...
asked by 14.06.2018 / 00:02
2
answers

Avoid double inquiry to print report crystal report c #

I want to raise the following question, I do not know if I am correct. I generate a view in which you receive parameters to be able to generate a report and upload it as partialview the code is as follows. [HttpPost] [ValidateAntiForgeryT...
asked by 13.06.2018 / 16:33
1
answer

Problems with Enums

I have the following enum public enum Tipo { Tipo0 = 0, Tipo1 = 1, Tipo2 = 2, Tipo3 = 3 } Which I use in my model in the following way public class MiModeloViewModel { public Enums.Tipo Tipo { get; set; } } F...
asked by 08.06.2018 / 19:27
1
answer

How to handle the cookie of my jwt?

I have an api with jwt that gives me a token of authorization to be able to navigate in the application that consumes the api, this token has an expiration date and it is here my question. How can I handle this from my client appli...
asked by 12.06.2018 / 00:17
2
answers

How can I make a constructor in my controller?

Can I make a constructor of my controller to instantiate the instances that I must consume from the models or methods of my application ?. How would it be? Example: My controller public class MiControlController : Controller {...
asked by 06.06.2018 / 16:16