Questions tagged as 'c#'

1
answer

Allow Multiple Users per Browser

For example, Google allows you to keep n Google accounts stored in your browser . In the case of Google , it creates a control variable called authuser which receives a inteiro , it passes this va...
asked by 27.12.2016 / 13:20
0
answers

Allow Camera and Microphone access to a WebView by Xamarin Android

I've created a webRTC application that allows me to do streaming audio and video via javascript, now I need it by my Android I can access through an app I'm developing. I'm using a WebView to load the URL into the app, but it looks li...
asked by 08.11.2016 / 13:48
1
answer

Connection Problem with MySQL - Connection must be valid and open

I have a problem in a Windows Form in C # that uses DataGridView . The following is done: When clicking on a row in the dataGrid the information of the respective row, saved in a database, should appear in a group of TextBoxes and from it...
asked by 11.11.2016 / 17:12
1
answer

Two-way asynchronous communication in layers

I have system in Asp.Net MVC (.Net 4.5) divided into layers: Thatsaid,let'sgetdowntotheproblem...I'mtryingtocreateascreentosendemailsasynchronously(3emailsatthesametime,forexample),buttherewillbeabuttontocancelthesending,whichforcesmetoinfor...
asked by 30.06.2017 / 15:25
0
answers

Service returns cast error when consumed

I decided to make another post, since the subject is another, although in the original post, in the comments we get to touch on the subject, but without depth. I have this error:    System.InvalidOperationException: 'The specified cast from a...
asked by 25.08.2017 / 15:14
3
answers

Functions with parameters of type TextBox and Buttons

I have a program that at one point works with the visibility of an object. I'm creating a function and I do not know how to reference objects. private void Visible(object x, object y, object z, object a) { x.Visible = true; y.Visi...
asked by 28.05.2015 / 16:57
4
answers

How do I make a DropDownList linked with a model property?

I have my class: public class Topico { public int Id { get; set; } public string Nome { get; set; } public string Observacao { get; set; } } and my SubTopic class public class SubTopico { public int Id { get; set; } pu...
asked by 27.05.2014 / 23:47
4
answers

Comments weigh the code in C #?

I use the C # language with the Unity Engine, and as many programmers have access to the code, we often talk a lot so that everyone can understand what's in it. I saw in other answers recommendations for using a minifier but they were always rel...
asked by 04.05.2018 / 16:53
2
answers

Send request get and receive data

According to PagSeguro, I need to make a GET and then receive the data that comes in XML format Documentation . I'm screwed in this part:    To consult a transaction notification, you must make a   the Notification Query API, informing th...
asked by 13.10.2014 / 14:07
3
answers

Problems with SELECT with 2 WHEREs

I have a somewhat amateurish problem here. I can not do this SELECT from 2 CONDITIONS, and I can not find the ERROR! Someone please give me a light there! Follow the Code: OleDbConnection Con = new OleDbConnection(); Con.ConnectionSt...
asked by 26.07.2016 / 22:53