Questions tagged as 'c#'

2
answers

Program write in the textbox of another

Hello! I used the program "Exe Lock" to block my files, everything works perfectly, the problem is that I was trying to open the file locked with a program in C # and the program itself write in the textbox that asks the password for the other t...
asked by 27.12.2016 / 23:18
2
answers

Visualization of Colors and creation of new

I need to make use of the class Colors defined in the namespace Windows.UI . There are many colors available and I'm having to find a way or a place to see a preview of those colors, because only by name is difficult to know...
asked by 31.12.2016 / 20:59
1
answer

Problems generating a PartialView with BeginCollectionItem

With the intention of creating an action for Adc / Deleting data dynamically to a table with a relation of 1 to Many, .NET returns the exception " Object reference not set to an instance of an object. When I call PartialView, I try to view the...
asked by 10.11.2015 / 20:01
2
answers

Copy a List to another List without dependencies

How do I copy data from one list to another so that they are independent of one another? I have a < > of a class that I created where the data inserted in it, will appear in a listBox, and wanted to copy everything that is in that list to...
asked by 16.12.2016 / 01:39
1
answer

Embedded database with C # [closed]

I'm developing a local desktop application. As there will be no database servers, I have studied some, such as Firebird, SQLite, Access and even Localdb. But I still feel "lost" in which to work. I know the general choice is SQLite, but I did no...
asked by 06.11.2015 / 13:45
1
answer

Required validating property of another object

I have the following properties, but when I am going to validate via ModelState.IsValid it returns that the description of the user group being informed that it is UserId too, but the problem is that I am prompting for the bank itself to generat...
asked by 27.10.2015 / 01:40
2
answers

Pass parameters to the Controller via @Html.Action

I need to render one view inside another, but this rendered view needs to receive and display data from the database, so I'll use the @Html.Action for this, but I need to pass a parameter to the method on the controller fetch the data in the dat...
asked by 29.04.2015 / 19:06
2
answers

Using Array.Foreach to modify the collection

I want to remove spaces from the beginning and end of the string ( Trim ) in all positions of the array , but none of the forms below worked. What am I doing wrong? var optionArray = new string[] { "in the jungle ", " the mighty jungle"...
asked by 26.07.2016 / 19:34
1
answer

Datetime-local at @ Html.EditorFor

I have a model property that I'll save DateTime : [DataType(DataType.DateTime)] [DisplayFormat(ApplyFormatInEditMode = false, DataFormatString = "{0:yyyy-MM-ddThh:mm:ssZ}")] public DateTime DataInicio { get; set; } I want to convert t...
asked by 19.07.2016 / 16:11
1
answer

Questions regarding Asp.Net MVC [closed]

The structure is View - > Controller - > Model I work with 3 layers but it is not MVC. What does this passage mean?    @{ ViewBag.Title = "Index"; } What is ActionResult? Do not have Page_Load? I'm lost. Can anyone help me?     
asked by 18.06.2015 / 19:55