Questions tagged as 'asp.net'

1
answer

Error exporting a txt file

I have this code block in vs2010 with C# what it does is to create a txt file to save to a network drive. protected void export(object sender, EventArgs e) { ExportarEmbarque(); } public void ExportarEmbarque...
asked by 18.10.2017 / 19:04
2
answers

Mongo DB does not connect to C # .NET

I have a project in C # .NET in which I referenced the necessary drivers to use mongo in this language, until then, everything is correct. However, there is no type of reaction on the part of the database when I execute the following code: usi...
asked by 21.10.2017 / 14:32
1
answer

Save HTML tags on sql server and read them

When I save some line break tags in a text on the sql server, that parameter I read it through a service and I save it in a ViewBag. When displaying it in HTML, the text is shown with the tags. For example: Hola esto es un texto <br /...
asked by 10.10.2017 / 16:45
2
answers

ASP.NET execute method through AJAX

Hi, I'm learning to use AJAX in ASP NET, I want to run a method through js, but I'm not sure how to reference it, the method I want is in my controller but when I give it the route it does not tell me it does not find anything . @model P...
asked by 29.09.2017 / 21:41
1
answer

Session expires before the values set in web.config

How about Devs,     I am developing a Web forms application with asp.net, I can not make the session expire before 20 minutes, I have a login screen where when I authenticate I keep the authenticated user in a session variable, this I do so keep...
asked by 29.09.2017 / 23:28
1
answer

Center content of a cell itextsharp c #

I am working on a salary settlement format in c #, with itexsharp to generate the pdf file. But I can not control the alignment of the contents of the PdfPTable / PdfPCell cells. I have this code: /*datos del LA LIQUIDACIÓN*/...
asked by 27.07.2017 / 18:39
2
answers

Choose Gridview rows in ASP.NET

I am extracting information at GridView but I see that they are quite fields that I do not want. How could it be done to just choose the rows that I want? I enclose the image of GridView and everything that comes out....
asked by 09.06.2017 / 19:23
1
answer

How to paint a date that comes from a Sql table in a calendar in C #?

I have a calendar, in which I am coloring the rest days in Orange, based on the start date of the employee's day and the type of day. What I want to do now, is to bring a date ( FechaSalida ) from my database, this date tells me if I work...
asked by 31.05.2017 / 22:44
1
answer

Reload a partial view from JQuery or JavaScript

This time I find a doubt that looking in several forums I have not managed to solve, I have a list of notifications, which I post in a partial view, then I invoke this view in a layout. up there all right. Then I have a script that whe...
asked by 28.06.2017 / 20:09
1
answer

Save Excel ASP file c #

Good Night I would like you to help me. I'm doing an application and if I save the route correctly but when I want to run again, everything is deleted and created again. I would like it to be created in the same folder as well as copy and not be...
asked by 24.03.2017 / 01:51