Questions tagged as 'c#'

4
answers

Databases for different clients

I am learning MVC 4 and would like to know if there is a way to with only 1 model accessing different databases? For example, I have an online system and for each client I have a separate bank. What would be the best practice to do this?     
asked by 26.05.2014 / 14:54
2
answers

Saving the logged-in user ID

I am using it in my Windows Authentication application. I have a controller where the user must register their professional experiences. However, the way the application was made, I need every time I enter a new data, put the license number or I...
asked by 11.06.2014 / 14:27
1
answer

How to add new properties to a user using Identity?

How can I create new properties using the UserIdentity that comes by default when creating an MVC 5 application? Also, is it interesting to put information that does not pertain directly to authentication and authorization in the UserIdentity...
asked by 30.06.2014 / 03:10
1
answer

Automatically change the namespace when changing the folder file

I need to restructure the folders of a project, but there are many files and their namespaces need to be changed. Is there any way to automatically change the namespace when moving a .cs file from one folder to another?     
asked by 30.05.2014 / 22:17
2
answers

How to handle the event generated by the Windows Phone 8.1 back button?

In previous versions it was possible to do such manipulation overwriting the OnBackKeyPress. protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { . . . } However, two...
asked by 01.08.2014 / 23:59
1
answer

Ways to check if there is any screen capture software running with C #

I'm developing software written in C # to display paid videos and I need to create protections to prevent buyers from distributing videos in an irregular way. For now I need to prevent capture software from running. The only alternative I had...
asked by 03.08.2014 / 01:13
1
answer

Report Builder 3.0 RDL Report with MVC 4

I have a problem here, I made a C # system using Razor MVC 4 with SQL Server 2014 database, so long ... well now I need to generate reports, I made a report there in Report Builder and added it in my solution, there I created the methods: publ...
asked by 06.08.2014 / 23:03
1
answer

DropdownList with unique values MVC

My class Galeria has a foreign key with Album because there is a 1-n relation and each picture in the Galeria item has a Album . Given that, in the CMS that I created I give the possibility of the user to relate a phot...
asked by 04.08.2014 / 20:54
2
answers

View Razor for PDF

I need to convert Views from my MVC 5 application into C # using Razor to PDF. I've already tried it, and the free tools depend on iTextSharp, which I researched has a different markup. But I need to convert any HTML page to PDF, that is, con...
asked by 18.08.2014 / 21:55
1
answer

Launch Windows Service automatically

I created% test%, I was searching and I saw that to start it automatically it is necessary to change the Windows Service property of the% object StartType to Automatic , that the service, after already started automatically. Howev...
asked by 15.12.2015 / 13:32