Questions tagged as 'c#'

1
answer

Correct view creation in MVC using Ajax

I have a page that maintains a budget. Below I present a briefing of entities public partial class Orcamento { public int IdPedidoCompra { get; set; } public int IdCliente { get; set; } public System.DateTime DataPedido { get;...
asked by 23.06.2015 / 21:58
2
answers

Number of lines per page reporter viewer c #

I would like to know how to display in the report (reporter viewer / c #) the number of rows per page and the total amount on all report pages.     
asked by 25.06.2015 / 13:28
3
answers

Delete record from link using Entity Framework

Good morning. I'm working with Entity Framework and I'm having trouble updating a relational table. For example, I have a product with several categories, in the edition I unlink the category x of the product. The update does not delete the unre...
asked by 25.06.2015 / 15:06
2
answers

Turn bank information into Link

I'm doing a website which has a string from the database but I want this string to be informed as follows, instead a button will appear that the user will click and this button will open the url that is the text that is ta in the string that is...
asked by 26.06.2018 / 14:02
1
answer

DragDrop for Windows Forms .txt files

I would like to know if you can use Drag and Drop in Windows Forms for files outside the application, in this case a .txt (just like in WPF). I just found examples using ListBox. If it is possible, how to get the data from the file dragged? I...
asked by 22.06.2015 / 21:34
2
answers

Authentication in RESTFul service

In the example below, I need to pass a login / password pair because the REST service requires Basic Authentication. So how do I pass this information in the following section? (Additional information: authentication must be made encoded in t...
asked by 08.09.2014 / 21:08
1
answer

VallidationSummary shows no error on the screen

I am using ValidationSummary in forms, but they are not being rendered. Is there any known reason for this error? Example form: @using (Html.BeginForm("CadastrarPessoaFisica", "Usuario", FormMethod.Post)) { @Html.ValidationSummary(false...
asked by 07.09.2014 / 22:32
1
answer

How to repeat HTTP requests multiple times and simultaneously, without delay?

I need a way to send link multiple times without changing any requests. Currently I've been using Charles Proxy - I get the request from an iphone app so I can repeat it on my computer. Charles Proxy repeats as many times as necessary, but...
asked by 16.05.2014 / 19:20
1
answer

Error calculating difference between dates in Entity with Linq to Entities

Before this was my expression: var resultado = db.T_CRM_StatusPDV .Join(db.T_PDV, t1 => t1.DE_Cnpj, t2 => t2.CNPJ, (t1, t2) => new { t1, t2}) .Where(dt => (TimeSpan)((dt.t...
asked by 06.06.2014 / 21:10
1
answer

"Invalid Data" error when trying to decrypt a file using TripleDES

I am developing a routine that decrypts information from a ".txt" document using TripleDES. However when decrypting it it generates the following error:    Invalid data. In StackTrace it looks like this:    in   System.Security.Cryp...
asked by 29.05.2014 / 20:41