Questions tagged as 'asp.net'

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
0
answers

CheckBoxFor and ListBoxFor do not behave in the same way when making a post with them?

I have a form in which I occupy ListBoxFor and CheckBoxFor for them I have their respective classes which are the following. public class SelectViewModel { public List<SelectListItem> MiPropiedad { get; set; } publi...
asked by 05.06.2018 / 22:41
0
answers

Why is the webSQL reading not executed?

I have this js on an asp page: <script type="text/javascript"> function onSend() { debugger; var paciente = {} var result = null; paciente.nhc = "151617"; result = getfingerPrint(p...
asked by 06.06.2018 / 04:08
0
answers

how do I run the sp that has an update from asp.net?

I have the following problem: I have an application in 3 layers in the data layer I have the following code: public string D_RegistroAprobacionRH(int vopt, string vObservacionVrh, string vUsuarioValidarh, string vObservacionArh, string vUsuar...
asked by 02.06.2018 / 02:33
1
answer

Error 404 when trying to download PDF - ASP.Net C #

I need to download a PDF that I have stored inside a folder in my application, I want it to open in a new tab. The following code works perfectly for me in my local application but once published on the server and trying to download the file, i...
asked by 05.06.2018 / 17:07
0
answers

Put image condition on a row of my gridview

It used to work like this but since I used itexsharp to generate a pdf, I set myself wrong and now I do not know how to correct it .. If e.Row.RowType = DataControlRowType.DataRow Then If e.Row.Cells(6).Text.ToString = "True" Then...
asked by 31.05.2018 / 19:00
0
answers

problem with class "active" in page

I do not know much about the subject but I think it's a postback problem. When I click on a number on my page the number is not put in active state, but the script that I have is for that reason but it does not work. if it puts it in active stat...
asked by 12.06.2018 / 09:45
0
answers

Crystal Report error System.OutOfMemoryException

I have developed an application where I generate a lot of PDF files with Crystal Report and then send them by email. The problem is that as I generate the PDFs the consumption of RAM increases steadily until a System.OutOfMemoryException error i...
asked by 31.05.2018 / 06:00
0
answers

When the cookie expires, it renders a view within my form when making a post. Why is this happening?

I have the following problem, which is not why it happens or how to fix it. Next I expose the case. I have a web application built with asp.net mvc5 which has a cookie that lasts x minutes, at the time of expiration and is about to submit som...
asked by 31.05.2018 / 22:59