Questions tagged as 'c#'

1
answer

c # with javascript get src from the image using MouseDoubleClick cefsharp

<html lang="pt-br"> <head><title></title></head><body><img id="1" alt="1" src="http://www.imagenspng.com.br/wp-content/uploads/2015/06/imagenspng_logo4.png"style="width: 150px; height: 150px;" /><i...
asked by 30.06.2017 / 05:37
1
answer

Extract attributes from an XML in a SOAP message

I'm building a WebService that returns status of an object, so I get the object's data to search the base via SOAP message: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:agr="http://site.temp.br/">...
asked by 30.06.2017 / 06:03
2
answers

Change the name of the pdf file to hash and then be able to undo the name to read again

I'm doing a feature on a system where; Anyone will upload an important file, this file contains sensitive information linked to each employee of the company. Each employee can open his / her own file, but no one else can open it. The file is...
asked by 23.06.2017 / 22:00
1
answer

How to recover date from SQL Server correctly? [closed]

I created a simple CRUD using the ASP.NET MVC and I can save my records normally. If I looked in the database, my date ( DataCriation ) was stored like this:    2017-06-01 00: 01: 23,750 But when I try to edit the same record with a...
asked by 06.06.2017 / 00:01
2
answers

What better way to align columns of DataGridView C #

What is the best way to align the columns of a DataGridView, because if you placed to align by the size of the column name you cut cells that are larger than the size of the column name, and when placed to align by the cell and the cell size is s...
asked by 06.06.2017 / 19:19
1
answer

Handle PrintScreen in C #

At one time a guy here in the forum helped me put together a program to take a picture of a specific window that I had opened on my computer. I wanted help to know if I can in this photo instead of being the whole window, just be a part of the w...
asked by 01.07.2017 / 01:49
1
answer

EF 6 - Migrations does not reflect changes in entities

I changed my entities and circled the command Update-Database -Verbose -Script only to see in% with_% what changes would be made. Generated legal script with all changes. I closed the script window and circled the SQL , which did...
asked by 30.06.2017 / 22:58
1
answer

Generate Token Credit Card Pagseguro

I'm using the PayPal API Git and I can not figure out how to generate the credit card token to do the transparent checkout. In the sample project you have the following command: // Sets a credit card token. checkout.Token = "9a476...
asked by 22.06.2017 / 14:22
1
answer

Class Mapping with FluentAPI and Entityframework C #

Parent, State, City Table A country can have several states and a state can have only 1 country;    State-> Country: 1: N A city can have only one state and one state can have several cities.    City | State 1: N       I would like...
asked by 22.06.2017 / 17:24
1
answer

How to change and maintain mapping of classes and properties using ADO.net

When using a database I have tables and columns with names like: - tb_user usu_id usu_name usu_data_nasc - tb_product pro_id pro_name pro_desc_resumida pro_desc_completa When you use ADO.NET Entity Data Model - &g...
asked by 07.06.2017 / 13:40