Questions tagged as 'c#'

1
answer

Asp.Net Drop Down List

How do I pass%% by parameter? I tried to pass, for example: public void preencheDrop(string SQL, WebControl x) { método aqui. } But I could not. This method I just want to make it easier for me to fill up more than a dropdownlist...
asked by 01.07.2015 / 15:04
1
answer

EF 6 Code First: Decimal field gives error when trying to save

Hello, good morning. I have a class that has a decimal field where I save the price. So far so good. When it is displayed in the / Edit / of the page, it is also beauty. But that's the problem: 1 - The MVC (which I am using 4 with EF 6) it di...
asked by 04.07.2015 / 10:30
1
answer

How to reference a DLL using DllImport and a variable in the path?

I have a problem at the moment of reference a dll using <DllImport> , because in the place where I put the path of dll <DllImport("C:\MinhaDll.dll")> , I would like to use a variable, and it is not possible, it returns th...
asked by 03.06.2015 / 15:03
2
answers

Add SOAP Header in SOAP C #

I'm trying to add a custom header in a SOAP service using C # . I've tried everything and I have not found a solution that works. I am adding the C # Web Services service. I've already tried to override GetWebRequest , but it did not...
asked by 13.10.2016 / 15:42
1
answer

Table to store expenses and revenues. Cyclical information

I'm creating a C # system for storing individual revenue and expenses. I am in doubt about the storage of this type of information, which has frequencies and repetitions. For example: I have a monthly expense of 36 months or I have an indefinite...
asked by 05.03.2015 / 01:03
1
answer

Socket UDP Send and Receive C #

I'm developing a C # application that uses UDP, the problem is that I can not respond to the client. I get the following error: Additional information: A request to send or receive data was not allowed because the socket is not connected and (wh...
asked by 04.03.2015 / 20:00
2
answers

Register only some data of a form C # Asp.net MVC 5

I have a people registration form, where I have already registered her address, there was a need to be able to register more than one address for the same person at the time I am registering her, but I can not have a nested form inside one that...
asked by 11.08.2015 / 16:19
1
answer

How to mount a Stackedcolumn100 chart?

I am returning a query from the database to DataTable and serializing it to Json . I use the following method to Serialize my DataTable to Json. public static string ConvertDataTabletoString(DataTable dt) { System....
asked by 27.04.2015 / 21:44
1
answer

Cut an image every 300 pixel height

I'm developing a Clipping report generator where I need to insert captured images from internet pages. Most of the time it is necessary to cut them and distribute them in the PDF pages. How do I crop an image programmatically every 300 pixels in...
asked by 20.02.2015 / 14:06
3
answers

How to turn a byte [] into a file uploaded into a C # UploadFile

In the past I was able to get the file path through the component, but now after searching I found that it is no longer possible to get the file path on the client for security reasons, etc. In an old application I had a method with this code bl...
asked by 15.04.2015 / 13:39