Questions tagged as 'c#'

2
answers

How to resolve the "Could not create SSL / TLS secure channel."

In my project, I need to communicate with a WebService and send data to it. But when I do the wrapping and sending, it presents the following error:    "Could not create SSL / TLS secure channel.". Follow the code below: Method Call:...
asked by 14.09.2016 / 15:23
1
answer

Fill in a list with Json's return

I wanted to populate a textarea or anything that looks like a list, with the items the guy selects from a dropdow. So I thought so, but I do not know how to feed the list ... <textarea cols="1" id="lista"> <ul> </ul&g...
asked by 02.12.2016 / 04:06
1
answer

Jquery MaskMoney asp.net Mvc

I use Jquery MaskMoney in my inputs to treat decimais , so far so good, but I noticed that when I type values above 1,000,00 But when the value is a thousand where the point (999.99) does not go, the value...
asked by 01.12.2016 / 18:09
1
answer

Join for 2 tables

How do I use the Join method to give an include of a value from another table? In this case I was going to use the MusicCall table and the MusicCount table var chamadaMusicas = db.ChamadaMusicas .Include(c => c.Chamad...
asked by 01.12.2016 / 16:19
2
answers

How to reference HTML elements without ID in C # Windows Forms

Good evening! I have the following code: <H3>Dados Cadastrais</H3> <table class='dados'> <tr> <th>Avalista:</th> <td>VINICIUS ALVES GONZALEZ</td> <th>Contrato:</th>...
asked by 01.09.2016 / 01:59
2
answers

Change the Foreground of certain items in a ListBox, via Style, using a Converter?

I have ListBox where the data source is ObservableCollection<string> . I would like the items that started with "WARNING" to have the red font. I would be able to do this using a DataTemplate , a Converter a...
asked by 01.09.2016 / 19:47
1
answer

URL by ViewBag

I wanted to pass a URL through the ViewBag, but I could not. wanted to do asim: ViewBag.Quantidade = "Você Não tem quantidades suficientes, para continuar você deve comprar um Pacote"; in this case the text "buy a package" was a link.     
asked by 01.12.2016 / 13:34
2
answers

Saving user values to files in C #

I'm looking for some simple way to save user data to file in C #. In Java I always use the Properties class. I'm looking for something similar in C #, I've already tried and found some answers but I still could not solve my problem. F...
asked by 17.08.2016 / 16:58
1
answer

DisplayName does not work in relationship

I have a model : public class TalaoCode : ITalaoCode { [Key] public int TalaoCodeId { get; set; } [DisplayName("Equipe")] public int EquipeId { get; set; } [DisplayName("Equipe")] public v...
asked by 28.12.2016 / 13:57
1
answer

Load a GridView with selected records

How to load a GridView into the WebForm with some rows already selected? I'm trying the following code but without success ... protected void BindGridAcesso(int idSenha) { Usuario usuario = IdentificadorUsuario.ObterDado...
asked by 22.08.2016 / 20:47