Questions tagged as 'c#'

1
answer

Problem with dates in C # and MariaDB XAMPP

I am developing an application with Xamarin.Forms that communicates with my REST API made in Node.js and it communicates with my database in phpmyadmin. (All the development is in local). The problem I have is that when I send the JSON data a...
asked by 16.05.2018 / 20:46
2
answers

Save Gridview as PDF - ItextSharp

protected void ExportarPDF(object sender, EventArgs e) { Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=SearchBooking.pdf"); Response.Cache.SetCacheability...
asked by 07.05.2018 / 21:41
1
answer

Linq on dictionary c #

I'm trying to make a linq on a dictionary to find a key, I have something like this, and I want to find the value of the "Hello" key: Dictionary<int, Dictionary<string, string> Datos = new Dictionary<int, Dictionary<string, stri...
asked by 21.05.2018 / 13:46
1
answer

how does the AddResponse method work?

Good afternoon everyone I am learning ASP.NET Core 2.0 And get to a section where you create a class to use as a repository "Repositorium.AddResponse (Received Object)" 1-) What role does the repositories have for what they do? 2-) What fu...
asked by 11.05.2018 / 16:05
2
answers

Get daughters entities from the main table

Good I'm doing a test, and I have two tables Products and Brands. The relationship between them is 1: M that is, a brand can be present or can cover several products, while a product only belongs to one brand. This is the code that links to the...
asked by 09.05.2018 / 21:09
1
answer

Consume an https service on asp.net c #

I would like you to help me I am trying to consume a service to my application asp.net c # a that the service I want to consume is .ashx but when I add the service reference I get an error like the image I attached. I would like yo...
asked by 27.04.2018 / 15:16
2
answers

Error entering data to an interface type object c #

I have an exercise that I have to create an IAnimal interface and two classes that use that Dog and Cat , because in the interface I have to create get set named Name and a method that returns a string called SaySomething, the question...
asked by 27.04.2018 / 20:22
1
answer

How to go through this list?

I have a list with this structure called InputText : Which I try to go through with this code: public void MoveTo <T> ( Page pag , Object obj) { var InputText = pag.ChildControls().OfType<T>().ToLis...
asked by 15.05.2018 / 07:56
1
answer

Parameters in Text file

I'm designing labels using Fingerprint, what I need is to modify text files with parameters, for example PP 18,060:PT "*%Value*" where value I should replace it with some string , the files will be saved by part number c:/Etique...
asked by 15.05.2018 / 20:26
1
answer

Rename / Save image passed from Ajax to C #

I have the following code which shows an image in a thumbnail using jQuery, which my idea is to pass "the image" of ajax to the controller to do what I need $('#subirFoto').on("change", function (event) { $("#arrastreImagen").html("");...
asked by 26.04.2018 / 17:43