Questions tagged as '.net'

1
answer

Wrong string conversion for double

I have in my app.config the following code: <add key="FolhaA4" value="0.168056514197457, 6.36413684210526"/> And here's the method to get these key values: private double[] ObterValoresConfiguracao(string chave) { Mana...
asked by 23.07.2015 / 21:42
1
answer

Search SQL database in a text saved by TinyMCE

I'm using TinyMCE for text editing on my site. When I search for a word with an accent. Eg: análise , the query does not count because the bank is saved in HTML an&aacutelise . I'm using ASP.Net MVC with SQL Server.     
asked by 17.08.2015 / 17:21
2
answers

Simultaneous tasks (Best way?)

Hello, dear friends! I'm looking for the best way to work with concurrent tasks in a graphical environment. I have tried to use: (Thread), (Task) and (Backgroundworker). But in all I had the same problem: not being allowed to manipulate an ob...
asked by 17.05.2015 / 01:04
1
answer

How do I set Nothing to a DateTime variable?

I have a function that gets a string and is converted to date time, I made a check for when empty string , return Nothing . But when it exits the function it is returning the date in this format #12:00:00 AM# , what I want is that...
asked by 13.07.2015 / 18:31
1
answer

How to translate error messages from validation summary errors asp .net?

I do not find a file that brings me the error message strings to be translated, annotation is fine, only those that bring more complex errors, such as    Passwords must have at least one digit ('0' - '9').     
asked by 21.10.2015 / 17:05
1
answer

Where to find the Microsoft.WindowsMobile.Forms library?

I'm developing an application on Smart Device for Windows Mobile 6 in Visual Studio 2008 C #. In this application I need to use the functions of the object CameraCaptureDialog , because the main purpose of it is to capture photos throug...
asked by 20.01.2015 / 16:12
1
answer

Error exporting to Excel (Corrupted file)

I am making an application to export the result of a sql query to Excel. After the file created the time I'm going to open it it gives a corrupted file error. SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "Execl files (*.xls)|*.xls...
asked by 26.01.2015 / 15:23
1
answer

Implementing Interfaces

I have the abstract class ClasseA and 2 child classes ClasseB and ClasseC , then I have an interface IClasse that is implemented in ClasseA and ClasseB . In the interface I have the metodo1 method...
asked by 22.01.2015 / 18:46
1
answer

Save data to the client for later use

I have a web form application where the user enters some values to perform an analysis. There are two item and quantity values, this data is in List<> which is used as DataSource of a GridView . They can have up to 50 i...
asked by 23.12.2014 / 15:16
2
answers

Subtract dates and compare with value

I have two dates: DataAcesso and DataAtual of type DateTime . I have one more field called TempoAtualizacaoAutomatica of typo byte . I need to subtract these dates and compare the result with TempoAtualizac...
asked by 29.12.2014 / 12:47