Questions tagged as 'c#'

1
answer

C # Unity, foreach of prefabs

Good morning. I have a function that reads data from an xml that is this: private string xmlPath; public XmlManager(string xmlPath) { this.xmlPath = xmlPath; } public Datos ReadXmlTest() { XmlSerializer serializer = new X...
asked by 30.03.2017 / 17:30
2
answers

Manage key commands from c # and WPF

Hello, I am trying to avoid that the user can copy, paste, cut and print from my application with WPF. What I found in the forum all used in the System.Windows.Forms.KeyEventArgs method however I have to use System.Windows.Input.Key...
asked by 11.05.2017 / 12:37
1
answer

How to validate the data of a json to deserealizar?

I have a function that receives a string, the string is a json, In which I need to validate the data of the json that send me to the function, this is my json, there is an array called eye products. {"comprobante_tipo":1,"comprobante_emisio...
asked by 10.05.2017 / 19:52
2
answers

The succes of Ajax is not working

Currently I have a jax call that takes me to my C # method to be able to authenticate my user, but this Ajax call is not working the succes part, since if it sends me to the method I want but in the end he does not send me the alert he should se...
asked by 25.03.2017 / 00:26
2
answers

Collect data of a variable C #

Good morning. I have the following code that reads an xml, and collects the data and stores it in a variable. private void leerxml(){ xElement rootnode= xelement.load(@"C:/xml.xml"); foreach (xElement chlid in RootNode.Elements()) {...
asked by 28.03.2017 / 22:54
3
answers

C #: The name 'database' does not exist in the current context (database is the name of a local sql database type .sdf)

My project has a local sql database to register tool loan vouchers and has many tables. In the form presented in the following image, I intend to develop a routine to support the information in the database following this tutorial . For...
asked by 13.03.2017 / 23:44
2
answers

Query with related tables in SQL and C #

I have this form: This form feeds two tables in the database projects and students , all right up to that point, since records are kept, both new projects, and students by separated. What I do not have very clear is in assigning stud...
asked by 11.03.2017 / 23:23
1
answer

Access the properties of a word with C #

Good afternoon, I need to read the properties and values of them in a word document, so far I have only managed to access the name of them but not their value. Thanks in advance for the help. This is the code I have: Microsoft.Office.Int...
asked by 09.03.2017 / 17:22
1
answer

Exit button does not autodirect to the back page asp c #

Good afternoon I would like you to help me. I have made a page in asp c # for this I am working with boostrap what happens before me in my fields put required for it to require and do not register when the white texbox I put the required but now...
asked by 10.03.2017 / 19:07
3
answers

Convert JSON containing backslash using C #

I tell you that I am consuming a REST service from a third party, when I make the call this returns me a json, the problem is that the json comes in the following way: (Here is a fragment of the JSON) "GetBookingResult": "{\"reserva\":{\"fecha...
asked by 23.02.2017 / 00:25