Questions tagged as 'c#'

1
answer

@ Html.Action in _Shared error while sending a ViewModel by Controller

In my _Shared I have a PartialView call _rodape.cshtml but now it will need to receive a ViewModel Since I do not want to create an Action on each Controller , I thought about creating a Controller named _Rodape , a...
asked by 18.07.2016 / 14:32
0
answers

Error and Warning when changing platform from AnyCPU to x64

I had a problem, which, when trying to capture 64-bit processes on x86 platform, an exception error occured. I was able to solve it by creating a 64-bit and 32-bit application. I got all the dlls, anyway, everything perfect ... right? Wrong. The...
asked by 12.07.2016 / 21:55
0
answers

Problem in System.Data.SqlClient when upgrading to 5 core aspnet

I updated all my project to aspnet 5 core because I was using the dnx vnext and apparently it worked everything right, but by conducting tests I noticed that some values did not come correct and to debug I realized that the parameter array SqlPa...
asked by 09.08.2016 / 16:16
1
answer

How to make a Label receive a text from the bank

Hello, I know the question is very simple, but I have a difficulty, I have a radio button and I would like the text to be received from a SQL Server database through a SELECT. I am using the Entity Framework. Please leave examples.     
asked by 09.08.2016 / 18:32
0
answers

signature P7s with C #

Personal I have a p7s file that can contain multiple digital signatures, I got with the X509Certificate2 class to get the last signature that was made in the file, I need to get all the signatures it has in the file. Thanks     
asked by 19.08.2016 / 22:59
0
answers

Load progress bar according to C #

How to make the progress bar load as the excel file import is in progress? My code so far: ASPX: <asp:FileUpload ID="FileUpload" runat="server" Style="margin-top: 4px" /><br /> <div id="progressbar" style="width:550px;...
asked by 19.08.2016 / 17:01
1
answer

Send object from AngularJs to POST of WebAPI C #

I have a form, which I am trying to save the information in the SQL Server database. <html ng-app="Crm"> <body ng-controller="CrmCtrl"> <form name="novoCrmForm"> <div class="row"> <div class="form-group text-left...
asked by 01.07.2016 / 15:12
0
answers

DropDownList with data from an Enum

I need to do a Helper where I pass an Enum and it mounts a DropDownList based on all Enum values, I tried to do it as follows: C #: public static HtmlString DropDownListEnumFor(this HtmlHelper htmlHelper, Type _enum, string name, int value)...
asked by 24.06.2016 / 12:46
0
answers

Update cell value in Datagridview in C #

Hello When I click a button, I need to update the value of a cell in datagridview . Follow the code that I tried but did not work. private void btnAcesso_Click(object sender, EventArgs e) { foreach (DataGridViewRow it...
asked by 17.06.2016 / 21:02
0
answers

How do I receive automatic notifications from PagSeguro?

I am implementing in the company where I work, the payment with the Pagseguro. So far, I've been able to generate a payment request and also receive the transaction code on my page. The problem is to receive the notification code via URL, I alre...
asked by 16.06.2016 / 20:58