Questions tagged as 'c#'

3
answers

Format output type double with dot instead of comma

I have a collection of coordinates to popular repeater, with city name, latitude and longitude. .aspx <form id="form1" runat="server"> <div id="repetidor"> var markers = [ <asp:Repeater ID="rptMar...
asked by 22.09.2016 / 18:37
1
answer

DataReader in using blocks executes the "Close ()" of the DataReader?

I have a little doubt regarding DataReader's within using blocks. If the my DataReader object is inside a using block, will it be closed at the end of that block? Or do I have to insert the Close () method? Here is a sample DataReader with th...
asked by 04.08.2014 / 21:02
2
answers

Error MySQL connection to ASP.NET MVC

I'm trying to work with a MySQL database in my application. However, I'm getting the following error:    Keyword not supported: 'data source'. I've done all the related procedures in this question But briefly, I performed this installat...
asked by 25.08.2014 / 17:20
1
answer

Developing in C # and .Net on Linux Ubuntu?

Recently I had to migrate from Windows to Linux, because my working notebook burned and I'm using an old one with Intel Atom and only 2GB of RAM, I was unsure of using Windows because it was a very weak device. I have to work with C # and .Ne...
asked by 01.08.2016 / 03:45
1
answer

Static public variables in C #

How can I organize my code? When programming variables come up which I'm leaving in the same code at the top as: namespace myData.MySql { public partial class teste { public static string M_CPF_PROCURADOR; public static...
asked by 18.07.2016 / 21:39
1
answer

Error converting bitmap to pictureBox in C #?

I am creating a path inside C # so I can always call images from this path, I am instantiating a reference ( using namespace.Properties ) and through it I am able to call Resources and using the following code: var myIcon = (Bitma...
asked by 18.06.2016 / 18:11
1
answer

Function that converts hexadecimal to binary

Is there a function equivalent to bin2hex() of PHP for C #? I need to convert a hexadecimal to binary. I tried to use TryParse but it did not work.     
asked by 11.05.2016 / 17:23
2
answers

Filter string REGEX C #

I have a string that returns all the contents of a html page. On this page, you have the following line: <input style="width: 2.3em;" id="nacional" value="3,48" type="text"> I need only the value that is in value , that is,...
asked by 11.05.2016 / 03:41
1
answer

Get image data

My system must process some images and get key data in text. Of course, the images will follow a style pattern. Where can I start? Is there any API that can help me?     
asked by 26.06.2015 / 21:40
2
answers

How to create progress bar for file upload via the Google Drive API

I'm uploading a file to Google Drive through their API. request.Upload(); is delaying with no return. How do I make progress? It can be with for even without graphical interface. Shipping method: public static File UploadFil...
asked by 17.06.2015 / 21:02