Questions tagged as 'c#'

1
answer

Error communication PHP and C #

I'm trying to send a C # data to PHP, but the example I find and all the solutions simply result in the same error. using System.Net; using System.Collections.Specialized; string valor = "1"; string urlAddress = "http://loc...
asked by 30.08.2018 / 02:35
1
answer

Returned list sorted in BLL?

In my project I use EF6 , I use generic repositories and in my BLL layer I have the ClienteBLL class, which is a class that has the logical implementation methods of the class. In one of the methods I return a list that re...
asked by 24.08.2018 / 22:28
1
answer

reverse connection in C #

I'm having difficulty using reverse connection between client and server. Whenever I try to connect using Dns or Ip does not connect, if I use LocalHost, 127.0.0.1, it connects perfectly. It can already "resolve" the DNS IP What do I need to do...
asked by 26.07.2018 / 07:29
1
answer

At runtime, does the form's asp.net webforms form change? [duplicate]

At runtime, the form's asp.net webforms form changes, see that I have the component id on my machine. Local example: <asp:HiddenField runat="server" ID="MenuSelecionado" value="processo"/> After execution, it looks like this:...
asked by 24.07.2018 / 22:43
3
answers

Program to rename files

I am trying to develop a small program to rename batches of files (pdf, etc). Imagine that the default is "1250_F1_001A_E01-001A00.pdf" and in the end it would get "1250_F1001A00.pdf", it kept the first 7 and the last 6 of any file. What's in th...
asked by 25.07.2018 / 17:35
2
answers

Change DataGrid Color

Galera,    I need some help, I already researched but did not find,    I would like to know how to change the color of the selected item in the DataGrid.    Example: When I have a row in the datagrid and click on it it is selected with the blue...
asked by 27.06.2018 / 16:05
1
answer

How to migrate a system made in C # using ASP.NET?

Good morning! I am new to the programming environment and am developing a system in C # using Windows Forms. In the future I intend to do this same system in ASP.NET. I would like to know if there is any way to make the most of the code already...
asked by 28.06.2018 / 16:35
1
answer

Converting a LINQ query to methods

The following query in LINQ (with query) below is used to list all providers that have an account (relationship 1 to 1): from f in fornecedores join c in contas on f.ID equals c.FornecedorID select f How can I achieve the same result using...
asked by 06.09.2018 / 20:10
2
answers

Return Value ID C # NpgsqlCommand

After inserting a line of information into a given table, I need to retrieve the ID value to fill my object, my code looks like this: using (NpgsqlConnection pgsqlConnection = new NpgsqlConnection(conn) { pgsqlCo...
asked by 06.09.2018 / 23:38
1
answer

String in Entity Expression C #

I need to make a dynamic query similar to the example below String tabela = "NomeTabela"; Var x = db.("NomeTabela").ToList(); Something like that where the table name will change as needed.     
asked by 08.09.2018 / 13:37