Questions tagged as 'c#'

0
answers

Windows does not show newly inserted files in a directory of a real device android / sdcard / Download /

I have an Android application that I import a SQLite file into the application to perform queries and changes. When I finish manipulating I export that same file to a folder accessible to the user so that I can get the same file and use it. A...
asked by 12.07.2017 / 16:03
1
answer

Bootstrap Modal change and Ajax ASP.NET?

I developed a basic functionality in the ASP.NET MVC controller where I have a product list and it changes in the Back-End and in the front-end I use Bootstrap-Modal to load the product and change, the modal loads the product perfectly , the pro...
asked by 12.07.2017 / 17:41
1
answer

C # Error - XML Serialization

I encountered this error when trying to load an XML file through three scripts: one called Item, another ItemCollection, and the script to load the XML file. Item: using System.Collections; using System.Collections.Generic; using System.Xml...
asked by 09.07.2017 / 17:19
0
answers

ValidateAntiForgeryToken + Back button

Good morning. I have a login form on a webpage using MVC 5, I am using the [ValidateAntiForgeryToken] function to validate forms for security reasons. The page logs in correctly, however when clicking the Back button of the browser and ent...
asked by 05.07.2017 / 14:38
1
answer

Problems with session distinction when two people log in with the same user

I'm having a Session problem in a project where I use C # and ASP.NET. If two people log in at the same time with the same user, the section variables have the same values. To be sure I have taken the ID of the sections created and they are diff...
asked by 18.07.2017 / 21:55
1
answer

Backup and Restore using PostgreSQL in C #

To back up or restore a database through a C # application using the PostgreSQL DBMS, you need to send a command to pg_dump. Is it possible to execute it via a select by sending an ExecuteNonQuery (the same way it executes in SQLSERVER?) Instead...
asked by 17.07.2017 / 20:22
0
answers

Stream that reads byte per byte?

I created a simple method that reads byte-by-byte in a stream, but it is very slow and takes minutes to process a ten-megabyte file, I do not know why it is so slow. It must be byte-by-byte and not byte[] because it is an operation that I...
asked by 11.07.2017 / 00:43
3
answers

LinkButton: Open link in a new window (Right-click)

I would like to know if there is any way I can open a new tab by right-clicking or a middle mouse button ... I am using " LinkButton " but the command occurs within OnItemCommand="ListaMenu_ItemCommand ". Aspx: <asp:Repeater...
asked by 17.07.2017 / 16:12
1
answer

C # - Passing data between Windows Form using ListView

I have a project in C # Windows Form, in my project I have 2 screens, 1 - ListView to show the information, 2 Form to get the user data and pass to the ListView of Form1, but the problem is: pass the form2 information for form1 My Logic:...
asked by 29.06.2017 / 21:16
2
answers

Problem inserting double value in MySQL

query += txtServidor.Text + "',";<br> query += double.Parse(txtVencimento.Text) + ",";<br> query += int.Parse(txtBanco.Text) + ",'";<br> INSERT INTO tbl_associados VALUES(10,'testando','001.318.555-55','categoria','ativo',...
asked by 30.03.2015 / 14:58