Questions tagged as 'c#'

1
answer

How to do a SELECT with Entity Framework?

I'm developing a kind of a QUIZ in C #, and I've already been able to do the INSERT questions and the answers in the database, but I'm having a hard time bringing the question and the bank's response to the quiz. Type a select, because I just...
asked by 08.08.2016 / 22:26
1
answer

Bundle problem on the server

Good morning, I was implementing the use of bundle in my ASP.NET MVC project, in the development environment worked perfectly. But when I go to the server it does not work. I was debugging in the browser and it gives the following return: "Resou...
asked by 07.07.2016 / 16:33
1
answer

Entity Framework: Error creating bank

I'm using EF6 and I'm having a problem using the Update-Database -Verbose -Force command. It gives the following error: PM> Update-Database -Verbose -Force Using StartUp project 'PersonalTrainer.Presentation'. Using NuGet project 'P...
asked by 06.07.2016 / 18:04
1
answer

Create temporary file using C # and ASP.NET

I am interested in generating temporary files in C #, ASP.NET and need the temporary url of this file (HTML), this file can not have a physical path on the server due to the access of several people. Therefore, I can not create a file for each a...
asked by 11.07.2016 / 12:53
2
answers

Return id or name of the dynamic object that was clicked

Hello! I am learning now to create dynamic objects in C #, my question is how to return the Text of the button I clicked for example. Let's say I created 10 numbered dynamic objects (in their case text) from 0 to 9 and I clicked on 3, how will I...
asked by 10.07.2016 / 02:09
1
answer

Problems passing a list of objects to another list

I need to pass a list of objects from one table to another list of objects in another table, I have been able to fetch the information, but I can not save them. Ex:  I have a table of people, in case I have the fields: Name, Age, Telephone, C...
asked by 10.06.2016 / 15:54
1
answer

Generate Dynamic HTML with ASP.NET

Good people, I'm having a project, and I need to generate a dynamic HTML card by pulling from an sql server. The case is as follows, I have a CARD in html, all stylized. Which in the case is the code below. <hr class="separador" />...
asked by 14.06.2016 / 16:34
1
answer

How to block the computer via code?

I am trying to find a way to block the user's computer and only one form of my can be active (Login Form), after the user correctly enter the login and password the computer would be unlocked. Can you do that? All the codes I'm thinking about...
asked by 27.07.2016 / 21:00
2
answers

Loop in constructor c #

I'm trying to set my Senha using md5 , but this is looping sett. public class Usuario { public int ID { get; set; } [Required] public string Nome { get; set; } [Required] public string Senha {...
asked by 14.06.2016 / 06:26
1
answer

Doubt with parameter passing in an Url.Action

I have a control that gets an ID and makes a listing, but on this page I have a button to return to the previous page, then as it also gets an id, then how could I pass this id dynamically? Here I am returning by passing ID 1: SelectModality...
asked by 27.07.2016 / 05:38