Questions tagged as 'c#'

1
answer

Connection error while performing query

I'm a beginner in programming and I'm trying to connect to a database. But when I click the "Search" button to browse the database and display values on my screen, the following error is generated through a messagebox that I put in Catch:   ...
asked by 13.09.2016 / 21:56
1
answer

Null parameters in controller when sending post via ajax

I'm refactoring an ASP.NET MVC application written by another developer. My intention is to remove the use of FormCollection . Before signing the controller method it was as follows: public ActionResult Salvar(FormCollection Parametro...
asked by 12.09.2016 / 15:31
1
answer

Visual Studio project losing references via git

When cloning a project, it is coming with some blank references, having to be added manually. This problem only occurs with cloned projects, if you download the project as zip by github, it works normally. I have tried to use the source tree...
asked by 22.10.2016 / 03:51
1
answer

Send POST request to PHP through Xamarin

I need to send a request in POST to a php file through this application. This code worked correctly in Windows Forms , but Xamarin is not working ... public void testar() { try { string...
asked by 03.09.2016 / 15:42
1
answer

displaying photos by Repeater with sql server Using split

I can not load the photos in the repiter by making a car from the data bank, I can not find anything on the web related to this problem follow the cod         ASPX ImovelDetails <section class="slider-container"> &l...
asked by 11.10.2016 / 14:16
0
answers

Error compiling App with Xamarin

I'm having some problems compiling my project in Xamarin no VS2015 .    Error java.lang.UnsupportedClassVersionError:   com / android / dx / command / Main: Unsupported major.minor version 52.0   NavegacaoIntent As I'm starting, my...
asked by 28.08.2016 / 13:02
1
answer

Transferring image via socket, the image turns black

My server sends a command to the client and the client sends a PrintScreen to the server using this code: Image printScreen = new Bitmap(monitorWidth, monitorHeight); Graphics graphics = Graphics.FromImage(printScreen); graphics.CopyFromScreen...
asked by 31.08.2016 / 21:22
0
answers

How to calculate + 10.5% in a product

How to calculate + 10.5% on a product? My calculation looks like this: private void txtMargemLucro_Leave(object sender, EventArgs e) { txtPrecoVenda.Text = (Convert.ToDecimal(txtPrecoCusto.Text) * Convert.ToDe...
asked by 22.08.2016 / 07:22
1
answer

Populating GridView without any selected record

I'm populating a GridView and it's populating with the first ever selected record. var lstUsurios = new V_ENTIDADE_X_PWDNegocio().Listar(); gdvAcesso.DataSource = lstUsurios; gdvAcesso.DataBind(); I have tried to change some properties o...
asked by 22.08.2016 / 17:14
0
answers

Sorting a DataTable column by a field of type DateTime

I have the following field in my model: [Required] [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)] public DateTime? DataCadastro { get; set; } I use the DisplayFormat to format and display the date in Braz...
asked by 22.08.2016 / 17:44