Questions tagged as 'c#'

1
answer

How to convert latitude / longitude to Double in C #

I have a problem, as it has a variable of type string and I need to convert to type double without losing the "dot". Example: string latitude = "-8.709006" when converting is equal to: -8.709006 But until then I have...
asked by 25.02.2015 / 14:35
1
answer

@ Html.ActionLink submitting form Post MVC

@using (Html.BeginForm("MinhaAction", "MeuController", FormMethod.Post )) { <div> <table> <thead> <tr> <th>Empresa</th> <th>...
asked by 12.05.2015 / 19:02
1
answer

Automatically write to a default folder C #

Can someone tell me the C # method to write a document to a default folder under Code? In this case I wanted the program to automatically write to the Desktop. This is the code I currently have on the button, but I intend to do it in Load....
asked by 15.05.2015 / 17:24
1
answer

Runat = server error when inserting a button in the form

I have this problem that when passing the login form it gives this error: [HttpException (0x80004005): Controle 'Button1' do tipo 'Button' deve ser inserido em uma marca de formato com runat=server.] I have tried other cont...
asked by 13.05.2015 / 23:05
1
answer

Convert.ToDateTime returns the previous day

Using C #, when I run this: Convert.ToDateTime("Wed, 20 May 2015 01:36:39 +0000") It returns me this: {19/05/2015 22:36:39} Date: {19/05/2015 00:00:00} How do you return it to the correct value?     
asked by 20.05.2015 / 15:48
1
answer

How to force a numeric entry in android to work with comma instead of point to decimal numbers?

I already tried to use Culture but it did not work either and I did not want to make a mistake of putting a replace before sending it to the base. Neither with the XLab I was able to put the keyboard to work me ptbr and to let put comma instead...
asked by 19.05.2015 / 16:18
1
answer

I would like a brief explanation of how to fill a combobox in MVVM pattern

I would like a brief explanation of how to populate a combobox in MVVM pattern. The three parts, Model, View and ViewModel populated with the Database table. Model: class Racas : INotifyPropertyChanged { private int _cd_Raca; privat...
asked by 19.05.2015 / 05:17
1
answer

LINQ JOIN Doubt

Is there a right order to join? Example, I have two lists: categories and products, should I first use the from clause with the Categories or Products? And then Join? Example: var stockQuery = from category in categories...
asked by 19.05.2015 / 22:39
1
answer

Problem deleting image

I have an image that is the avatar of my user, hence I need to delete and I have the following code snippets: Action that is used in importing the file public void MinhaActionParaImport() { var arquivo = Request.Files[0]; var cami...
asked by 21.05.2015 / 21:06
2
answers

Error debugging in VisualStudio 2013

I can not debug my programs, this always appears, I already delete the .suo file and nothing! Does anyone know of a solution?     
asked by 06.02.2015 / 20:56