Questions tagged as 'c#'

2
answers

C # MVC EF5 delete relationships

Hello, I'm developing an application using C # MVC and EF5 and I have the following problem: I have a client group management screen, in this group I can insert and remove clients, I use a relationship table between clients and groups called cli...
asked by 15.07.2014 / 20:46
1
answer

MVC WebApi Ajax error only on homologation server

I have a page in mvc that calls a method in webapi (another project inside the solution), it happens that in localhost everything works normally, when it goes homologation, when calling the method in api, it excute everything correctly, does wha...
asked by 08.06.2014 / 03:58
1
answer

Exception when trying to authenticate SSL connection

On my client when attempting to authenticate an SSL connection, an exception of type AuthenticationException is raised. The errors found in the certificate are RemoteCertificateNameMismatch and RemoteCertificateChainErrors ....
asked by 11.06.2014 / 14:56
0
answers

Querying Active Directory data in Sql Server

I have services (WCF) that do searches in Active Directory to provide data to many applications that use Microsoft Membership Provider, and also need some of this information in some queries in a Sql Server 2008 database, I generated a dll and I...
asked by 16.12.2014 / 16:25
1
answer

WPF application. How to reference the image in XAML code, so that another user can view them while executing the .exe file of the project?

I'm having a problem with my WPF application. I have two images in the XAML code, and when I run the application on my computer, they appear normal, but when I ask someone to run the .exe file, it runs normally, but the images do not appear. How...
asked by 18.12.2014 / 18:46
1
answer

Send C # API file

I have an MVC application in C # which is a WEb system. And I have a C # API that receives calls from the Site. I need to send a file from the Site to the API, I made the code as follows: Site Code submitting to the API controller public...
asked by 01.10.2014 / 16:26
1
answer

Can I add tables of content in the same database as the users? ASP.Net identity

I created an ASP.Net MVC 5, EF 6 project with individual accounts. The database is automatically generated with 5 tables: AspNetRoles ASpNetUserClaim AspNetUserLogins AspNetUserRoles AspNetUsers Is it good practice to put more...
asked by 05.04.2014 / 03:30
2
answers

Redirect ASP NET

How can I redirect the page I encounter via an html inputButton in ASP NET WEB FORMS the code of my button : <input id="ButtonD" style="width: 169px" type="button" value="D" /><br />     
asked by 03.04.2014 / 14:27
0
answers

Download a folder to your computer

In C # to download a file, use the code: using System.Net; void Baixar(string url, string saida) { WebClient wc=new WebClient(); wc.DownloadFileAsync(new Uri(url), saida); } So far I have not found any well-explained code regarding...
asked by 14.01.2015 / 18:02
0
answers

Substitute DataRepeater

I've always used DataRepeater to put my data and put buttons. Only in visual studio 2013 it disappeared. How do I use it without downloading PowerPack? Or do you have something similar to your ease? To do something like this here; l...
asked by 16.01.2015 / 19:28