Questions tagged as 'c#'

1
answer

One-to-one relationship in Entity Framework mvc

I have two entities, Service and Contract, their relationship must be one to one. the requirement is simple. how can I achieve this by means of data annotations or fluent api. the following is the code that I have (Entity Service) [ForeignK...
asked by 23.11.2016 / 18:31
1
answer

Call the main function of my DLL

The first thing I do is include the dll. The class will be called equally that the one of my program I do not know if this supposes a problem. What I want once added is to call the function of my dll, the class of the dll will be as follows: c...
asked by 09.11.2016 / 03:04
1
answer

Disable submit button with jquery?

I have a submit button to send a form and go to another page: <button type="submit" id="btnlog" class="btn btn-lg" value="" >Ingresar</button> and by disabling the button with jquery $('#btnlog').click(function () { $(...
asked by 03.12.2016 / 02:00
1
answer

Problem when generating one in SQL server to show them in an xtraReport?

When generating the query for the dates in SQL the result is correct, but when I put it in separate queries, when I want to see it in XtraReport only shows me the first one, my question is how could I solve this problem ? either fr...
asked by 15.10.2016 / 15:09
1
answer

.NET VS- [WebException: The operation has timed out]

I am developing a program in C # with Web Forms that consume methods of a WCF service. The following error is coming to me:    Exception "The operation has timed out".       Description: An unhandled exception occurred during the ex...
asked by 16.10.2016 / 22:30
2
answers

SELECT WHERE in MongoDB and C #

I have a question about MongoDB and C #, I need to filter the searches by an employee's name, that is, you put your name in a text box and if it exists the data is displayed in DataGrid . These are my advances: public class Entity {...
asked by 13.10.2016 / 16:38
0
answers

Problem with DataAnnotation

I have a problem with a custom DataAnnotation. public class RequiredInt32 : ValidationAttribute { protected override ValidationResult IsValid(object value, ValidationContext validationContext) { if (value != null) {...
asked by 12.10.2016 / 00:59
1
answer

pass item's from one ListBox to another with DataSource

I have the following problem, in an Aspx form with C #, I need to add or delete items to a ListBox from another ListBox, which are selected in one, in both listBox they are fed with DataSource (), I have seen in Internet and the that I could fin...
asked by 30.08.2016 / 16:41
2
answers

ASP.NET Report C # Datatable

I need to create a report that is fed with a datatable. Currently my project shows a general balance grid that is fed from a public static datatable that was worked in a class in the code behind C #. This datatable or table contains the da...
asked by 01.09.2016 / 22:45
1
answer

Use paradox with Visual Studio

Good day, I have a database created in paradox, and I must make a small application that shows a report with the records, this should be windows in C # or VB, someone who recommends me a tutorial on how to use it. or to explain where I can open...
asked by 11.10.2016 / 17:16