Questions tagged as 'c#'

1
answer

Pass TempData

Good morning, I have the following problem, I need to pass a variable to another controller and I'm trying to do this for TempData, it follows the code: var user = User.Identity.GetUserId(); var getUser = db.AspNetUsers.FirstOrDefault(x =>...
asked by 20.02.2017 / 20:00
1
answer

How to compare the structure of two tables and update the other?

The question is the same as the title: How to compare the structure of two tables and update the other? I have an online database, which I want to update the structure of the database. I also have some customers who use banks tapped offlin...
asked by 17.03.2017 / 00:04
1
answer

How to manually add rows in a datagriedview populated with MySql data

I have a DataGridView in which I populate it with data from a mysql table and then need to add rows with data from some textbox, when I try to return the following error: "Can not add rows programmatically to the DataGridView row collection when...
asked by 18.06.2017 / 23:39
1
answer

MahApps - Change icons to a desired PNG format

I found a WPF project on the web very cool. It uses a framework called MahApps. In the Hamburger menu there are some icons that use images from a Mahapps package. I would like to know if there is a possibility that I can change the block and con...
asked by 19.06.2017 / 01:34
1
answer

Security Certificate error in WebBrowser

I'm working on a winforms program that basically uses WebBrowser to access the federal revenue site using the digital certificate. My problem is as follows, first of all, I got this project ready and I'm hammering it as needed, it need...
asked by 01.02.2017 / 11:28
1
answer

Insert to C # Dynamic Database? [closed]

I am making a insert and I use a model with the Getters and Setters , when I do the insert in the values I get the model as a parameter and use the following way    sql = "INSERT INTO " + Table + "...
asked by 20.03.2017 / 00:23
1
answer

c # how to use the POST method with Restsharp

I have a code to login, but when I send the correct data the API continues to send the code "Unauthorized". The code is as follows: var client = new RestClient("link"); var request = new RestRequest("/v1.5/auth/authenticate", Method.POST);...
asked by 08.02.2017 / 15:23
1
answer

XML exchange between service and client [closed]

I'm studying WCF and all the starting material I find all comes down to very basic things, exposing methods that get some parameters and return some value. I need to create a web service that will be the interface between the database and ext...
asked by 15.01.2017 / 20:44
2
answers

Printing windows forms with direct reportviewer on the printer

I have an application made in windows forms and reportviewer , my problem is in printing:    I need to print directly to the printer without having to open the check box to select the printer How to do this in c# ?...
asked by 12.01.2017 / 20:07
1
answer

Event item ComboBox

I have a comboBox and I would like it when I select the date item it makes the datapick visible. How do I perform this operation?     
asked by 01.04.2017 / 13:32