Questions tagged as 'c#'

0
answers

ExecuteScalar SQL Server does not store an integer? C #

Good afternoon, I would like to know what I'm doing wrong because when I save the data through an insert, I keep the primary key with a very large value (it seems to be decimal) the table has the primary key as identity so that should be saved 1...
asked by 09.11.2017 / 19:15
1
answer

C # How to package dlls in an .exe

I have an executable (.exe) developed in Visual Studio 2017, I compile it with Costura.Fody to package all the dll that are needed during the execution of the application, however there are 3 dll that must be manually copied to the same location...
asked by 09.11.2017 / 19:27
1
answer

How to control a group of controls in C # (Windwos Forms)?

I would like to know how I can control each group of colors (R, G, B) by changing the value of a control such as ScrollBar and changing the value of Slider and DecimalUpDown. I have done it but it requires writing many lines of code and I would...
asked by 09.11.2017 / 19:21
1
answer

Return list by WCF

I want to return a list for a webservice, the list is for employees, and I want to return a series of data. The problem is that I do not know the logic as the interface and the service in WCF work. [ServiceContract] public interface IWSEmpl...
asked by 27.10.2017 / 20:51
1
answer

Search by numeric value sql net mvc2

I must filter the data by the address table data, it works fine with string but with int no. public ActionResult Buscar(string palabra) { IEnumerable<domicilio> domicilios; using (var bd = new serviexpres...
asked by 27.10.2017 / 18:58
3
answers

Access a script from another

I am in a unity project and I have two scripts, I would like to create a variable in the first called "counter" and the other add values, that is, as I show in the images, I have some functions that add one to the counter, and the other I want t...
asked by 26.10.2017 / 19:56
1
answer

Filter a list by a property that is a list with items from another list with Linq

I have a list of objects (Invoices) that have a property that in turn is also a list (DetailFactura) of objects of LineaFactura type. On the other hand I have a list of strings that represent the items by which to filter. It would be something l...
asked by 24.10.2017 / 10:38
1
answer

How to send a record of a DataGridView cell to a textbox of another form?

What I want to do is that when I click modify, send me another form to edit and the data appear in the textbox, but I do not know what I'm doing wrong ?. There is the datagridview code private void dgvDocente_CellClick(object sender, DataGr...
asked by 16.11.2017 / 19:46
0
answers

Problem with Page_Load to get values from a textbox

You see, I have the following problem. In the following image I have a series of data that comes from a database, initially the edition of the fields is disabled. A button called Modify enables the fields to be edited. In a question I a...
asked by 16.11.2017 / 21:40
0
answers

How to prevent a FileUpload from being cleaned when an event occurs in the form?

I have a fileUpload and a button as follows: <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /> Each time the Click event of the button is generate...
asked by 16.11.2017 / 23:28