Questions tagged as 'c#'

2
answers

Getting the full path of a client file in ASP.NET

On the server side, is it possible to get full path of a file sent by a client using the <input type="file"> tag? For example, if the user sends the file C:\Users\Documents\a.txt , does the server get the string C:\Users...
asked by 13.05.2014 / 22:03
2
answers

How to break lines (console mode)?

As I break lines in C #, type if I for two commands Write the console will print them side by side, how do I print on the bottom line. Ps: Code below var A1 = Console.ReadLine(); var A2 = Console.ReadLine(); v...
asked by 16.02.2017 / 09:27
0
answers

Associative entity EF mapping with Fluent API [closed]

I would like to know how to do a mapping without using ICollection , or it might even be using, but I would not want the bank to create a class, just to link the two classes. class Pessoa { public Guid IdPessoa { get; set; } public...
asked by 22.06.2015 / 17:24
1
answer

load xml in gridview

In my project, I need to select an XML file from some HD folder and then read its contents and show it in a gridview. At this point, I can open the window to select the file , but I can not read that file and iterate over it and show the XML...
asked by 22.06.2015 / 19:22
2
answers

Deleted file deletion in C #

I'm using the following line to create and write: File.WriteAllText(caminho + cliente, xml); In it I record an XML and then I treat it as follows: if (File.Exists(caminho + cliente)) { XmlTextReader xmlLer = ne...
asked by 06.10.2016 / 22:05
2
answers

How to close connection to the Firebird database

I'm trying to create a web application in ASP.NET C #, but I'm not sure how to do it. p> string conDDNS; FbConnection conexaoDDNS; protected void Abrir_Fechar_Click(object sender, EventArgs e) { try { this.conD...
asked by 12.02.2016 / 19:49
0
answers

Error importing NFSe Service from Aracaju

I'm trying to add this service in VS 2013: https://www3.webiss.com.br/aracajuse_wsnfse/NfseServices.svc But you can not add this URL as a service. Usually the URLs I add do not have .svc at the end. Error:    There was an er...
asked by 04.03.2015 / 14:01
2
answers

VIewModel relationships with EF

I'm developing a project where a user will have multiple data. In order not to extend the class much I thought about separating by categories. Example classes: User Personal Data Family Data Etc. To do this on the site I thought abo...
asked by 06.02.2015 / 17:55
4
answers

What kind of data to use for sale ID

I have a Windows Form application developed in C # and with SQL database. One of the functions of the system is to carry out SALES for different companies and different POS (different point of sale), however, using a single database. I use ID...
asked by 18.10.2016 / 13:43
2
answers

Copy data from one field to another [closed]

My client requested that I create 2 fields in the system, one as "Cellular" another as "WhatsApp" and next to the WhatsApp field would have a button to copy the value, if the number is the same, someone has an idea how can I do it?     
asked by 11.11.2016 / 19:43