Questions tagged as 'c#'

1
answer

FTP Connection Failure in C #

I'm developing a Console application in c # that makes the connection to an FTP server (or at least should), I have the following code: FTPConnection Class class FTPConnection { private Connection con; private FtpWebRequest ft...
asked by 18.05.2015 / 22:30
1
answer

Parameter for unidentified Stored Procedure

I'm having a problem, which would be a mistake saying that there is no parameter being passed to the procedure . It is running the following code: cmdProcedure.Parameters.AddWithValue("@id", 0); Command: public List<Models.Admin>...
asked by 18.02.2014 / 18:10
2
answers

MVC Custom and Friendly Routes | Create a Route with only one parameter in the URL

How to create a route where only the single parameter would be displayed? For example, my route is currently like this: routes.MapRoute( name: "RouteEvent", url: "{ProdutoNome}", defaults: new { controller = "Produto",...
asked by 18.08.2017 / 22:09
1
answer

Representation of an entity in my class

I have this field in the database: ID_LIBERACAO and in my domain class I have this: [Table("Tabela")] public class Tabela [Key] [DataBaseGenerated(DataBaseGeneratedOption.Identity)] public int IdLiberacao {get; set; } Even with the n...
asked by 20.08.2017 / 21:33
1
answer

Upload files with web browser C #

I'm developing a process automation system, where my client's vendor site has a part that needs to upload files. All automation is already developed, only missing this part. I have already researched in several forums, and everyone presents the...
asked by 05.09.2017 / 16:42
1
answer

What is the correct way to declare a method thread and prevent the same method from being used out of scope?

In my last questions I was creating some methods to automate some queries. It's cool, but now I need to control access to methods by specifying a sequence. When using the Select () method, I can not access it again. After the Where () metho...
asked by 14.11.2014 / 21:12
1
answer

Problems hiding / displaying div with Javascript

I'm having a relatively simple problem, but I can not find a quick solution: I have a dropdownlist that determines which div will be displayed, and the moment the page loads for the first time, it works perfectly. Shortly after saving t...
asked by 09.01.2015 / 13:38
1
answer

Reading of infinite loop tokens

I have a code that reads tokens from a text. I'm using Visual Studio 2013 in an extensibility project. When reading the text through the scanner and collecting the tokens , the program goes into an infinite loop: public class TestScanne...
asked by 16.06.2014 / 17:00
1
answer

Working with Excel data in C #

I need to create an application that reads a small sequence of data available each in an Excel column. My question is if the best way is to treat SQL directly by uploading the file and then dealing with a procedure or working with the data in C...
asked by 01.07.2014 / 15:51
1
answer

Changing a Dropdownlist through a search

I am creating a registration screen where in a text field I provide a search and the search result will have to appear in a dropdownlist. Theprojectisasp.netmvc4c#andthecodeintheviewis:<scripttype="text/javascript"> $(function () {...
asked by 11.07.2014 / 13:52