Questions tagged as 'c#'

2
answers

Restart service at low priority in the third core in C #

I have a service running on the machine in production. This service sometimes gets "stopped" and the easiest solution is to restart the service, and it continues to work as expected. Is there any way I can get this service in a program in C#...
asked by 17.08.2017 / 12:46
1
answer

Pass Facing to Controller

I've been looking for a solution for several days but I have not found anything useful to me. The problem is this, I have a Conttroller that gets the data from the View , so far so good, but when I'm going to capture this data it only capture...
asked by 07.06.2017 / 17:02
1
answer

Project default is not found [closed]

I installed a NuGet package and gave Project default is not found error. Well, I was in ComboBox Default Project to add the project I want to install the package and in Combo does not list anything, it's empty. How do I get the pro...
asked by 01.06.2017 / 20:37
1
answer

Write an HTML - possibly dangerous value Request.Form

I have a TextAreaFor that receives a content in Html, when trying to write I have an error, I added in web.config the pages validateRequest="false" I already tested the insert with plain text and it works, only with HTML it does not work [...
asked by 05.06.2017 / 19:57
2
answers

Adding multiple GridView rows

I'm trying to include multiple rows in a GridView, but it does not add rows, it always overrides the first. I'd like to know how I can add multiple rows, not replace the first rows. Follow the code for what I'm currently doing: dt.Column...
asked by 05.06.2017 / 16:00
1
answer

Get Json from query done in google with WebBrowser C #

I need to perform the following process, perform a google search and get the search information in Json format, how could I do this? I tried the following way, I used the C # WebBrowser and I browsed www.google.com.br, until it worked, but I...
asked by 14.07.2017 / 01:01
1
answer

How does inheritance between classes work in C #? [closed]

I have class 1 and class 2, class 2 inherits from class 1. Will other classes inheriting from class 2 inherit the attributes of class 1?     
asked by 12.07.2017 / 23:23
1
answer

What this feature calls C # [duplicate]

I always saw this in C # var button = new Button(this.ApplicationContext); button.Text = "New button; But now I have seen that the form below also gives, accessing the properties directly with { , what is this feature called? var...
asked by 28.05.2017 / 08:00
1
answer

Error converting HTML to PDF using XMLWorkerHelper

While exporting the HTML file to PDF using iTextSharp and XMLWorker error occurs in some situations saying that certain tag is not closed and searching I found this post My application queries an SQL table from where it returns saved HTML...
asked by 29.05.2017 / 18:49
1
answer

Run a program with internal arguments

How can I create a Process , start it without allowing any user to see the arguments? Ex:    Executable: MyGame.exe       Arguments: -userid 0 -userpwd 0 But without allowing the task manager or other method to know which comman...
asked by 29.05.2017 / 00:17