Questions tagged as 'asp.net-mvc'

5
answers

HttpContext.Current.User.Identity.IsAuthenticated is always false

I am trying to recover the currently logged-in user on my system, but for some reason the IsAuthenticated property always returns a false : I'm using this class to set the user to the context and to retrieve the logged-in user, which is in...
asked by 13.04.2016 / 22:04
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

How to operate a gif loading when using the window.location.href when downloading a document?

I have the following click event, which when exporting a pdf, is downloaded, but I wanted to place a gif animation loading while it is generated. I've tried to do it like this: $("#export_pdf").click(function (e) { e.preventDefault();...
asked by 02.07.2018 / 23:49
3
answers

The length of the string exceeds the value set in the maxJsonLenght property

I am sending a picture on Base64 through Ajax, this is because I am using an Apache Cordova PlugIn to take pictures. The result in Base64 is sent to the MVC server in a JsonResult. The problem is that when the string is very long the server retu...
asked by 21.06.2018 / 21:01
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
2
answers

Fill selectoption with titles stored in a database

I have a <select> and I want it to show titles that are stored in a database. I have found several forms but none has been useful. If someone can guide me, I would appreciate it: D This is what I have in my application of c # &...
asked by 25.05.2017 / 16:56
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
1
answer

Populate data a datatable from a JSON

Working with ASP.NET MVC, I am using the library DataTable.net I am bringing data from the database through a JsonResult that returns the information in plain text. Method // GET: Cliente public ActionResult Index() { L...
asked by 07.12.2017 / 20:02
2
answers

colspan does not work on the Datatable in C #

For example, I have a datatable: <script type="text/javascript" class="init"> $(document).ready(function () { $('#table_1').DataTable( ); }); </script> <table id="table_1" class="table table-striped table-bordered" > &...
asked by 26.09.2016 / 05:31
2
answers

Timeout in ASP .NET MVC

I have problems with an ASP .NET MVC application. The application does a timeout at about 20 minutes and nothing is done on it. I have these lines in web.config : <authentication mode="Forms"> <forms loginUrl="~/Cuenta...
asked by 10.06.2016 / 13:13