Questions tagged as 'c#'

1
answer

Make a button to add properties in a list using the BeginCollectionItem C #

I have a people register and I need to create a button to add multiple phones and send to my controller, I'm using BeginCollectionItem, based on my other question Form using BeginCollectionItem gets null viewModel in foreach just missing the b...
asked by 14.08.2015 / 22:04
1
answer

JsonReaderException when performing JObject.Parse

When I run JObject.Parse it starts a content exception:    Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path '', line 1, position 1. The Json I'm trying to interpret would be: [{...
asked by 10.12.2015 / 00:44
2
answers

How to change the name property in @ Html.EditorFor

I have the following class: public class ModelHome { [Required] [Display(Name = "Nome")] public string Nome { get; set; } [Required] [Display(Name = "Email")] public string Email { get; set;...
asked by 04.12.2015 / 15:23
2
answers

Entity Framework and parameterized constructor

When I create domains, I usually create a parameterized constructor for it: namespace Models { public class Unity { public string Abreviation { get; set; } public string Description { get; set; } public Unity (...
asked by 27.05.2016 / 22:57
2
answers

Import and read from file

I have an Asp.Net MVC project with Entity Framework 4 and SQL Server, where there is a Action that receives via POST a csv file. Considering memory usage, processing time and resources, or any questions about the database...
asked by 31.05.2016 / 21:39
1
answer

Error reading XML

I want to read nodes from an XML and my code below is generating exception: XmlDocument arquivo = new XmlDocument(); arquivo.Load(@"Z:\Área de Trabalho\Windows XP.xml"); // Esta linha abaixo gera a exceção // "Referência de objeto não defini...
asked by 11.07.2015 / 22:41
2
answers

c # query with cycles

Good people I'm doing a job in using C # and my knowledge is still very limited and I'm having a question. I have 2 tables and what I wanted to do was to show the 2 information where the information would not be repeated. Thisisa1-nrelationwh...
asked by 14.07.2015 / 13:30
1
answer

Change app title in Xamarin Android

I'm not able to get this string $projectname$ from my title into an application on Xamarin Android. I have already tried editing AndroidManifest.xml and AssemblyInfo.cs and nothing. I searched for this string in the e...
asked by 22.05.2015 / 23:39
2
answers

Get only the latest links from a sitemap

using HtmlAgilityPack; using JoeBlogs; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; using System.Xml.XPath; namespace ReaderXML {...
asked by 20.05.2015 / 20:17
1
answer

Unity 5 - Shoot up, enemy ship does not shoot

The enemy ship simply can not shoot and walk at the same time, or it does one thing or another. public class EnemyScript : MonoBehaviour { public float speed = 5f; // Use this for initialization void Start () { } /...
asked by 03.01.2016 / 01:30