Questions tagged as 'c#'

1
answer

How to run a program made in C # on the client machine?

Good afternoon, I just finished a sales system in C #, I'm testing the same on another machine this generate error, I already installed the .Net Framework 4.5 but still it continues. What will be the mistake this time around?     
asked by 26.04.2017 / 16:39
1
answer

Login on index screen

Talk, people, beauty? So I'm developing an ASP.NET MVC application and I have a login screen, however I include in the navbar login, where from the index the user could enter their email and password and click the enter button without having to...
asked by 07.10.2016 / 20:41
1
answer

Creating a Shopping Cart [closed]

I want to create a Cart, where I have the Products that I'm going to sell, the quantity and the total value. Anyone have an idea how I can start development? Just to clarify, it follows my Product class, which starts from a Menu: public cla...
asked by 13.10.2016 / 02:46
1
answer

aps.net C # Rename an image

I have an image in a folder and I wanted to change the name to only the Can someone help me? Thank you example: nomeoriginal.jpg was to:     
asked by 07.07.2016 / 17:39
1
answer

How to format 'DateTime?' in dd / mm / yyyy format using Linq?

I have query below, but when I try to format the field Data_nascimento and Data_exclusao with .ToString("dd/MM/yyyy") it returns me a runtime error.    The 'System.String ToString (System.String)' method has no con...
asked by 11.11.2016 / 13:24
1
answer

Error in doing search by name Access ASP.NET C #

I have a search error by name (value entered by the user) in the access database it says that the values inside the parameters are null. Follow the code.       Person.cs responsible for the bank's logic. public Contato obterCadastroPorNome(str...
asked by 11.11.2016 / 13:35
2
answers

Can I create a 2-position string Array Property in C #?

I have the following properties in a model: public List<string[]> Imagens { get; set; } public string[] Video { get; set; } public string[] Audio { get; set; } There in my Controller I'm checking if ModelState.isValid I ju...
asked by 09.11.2016 / 15:26
1
answer

Error TryParse of DateTime by converting string to Double format

I have a method that uses DateTime.TryParse to convert a string to type DateTime , but lately I realized that string with the format Double would also be being converted to date. Is there any solution to fix this? pu...
asked by 20.06.2016 / 14:50
1
answer

Creating ForeignKey

Well, in my project I decided to use some Foreign Keys. And after you end up getting this error:    {"The INSERT statement conflicted with the FOREIGN KEY constraint \" FK_dbo.Setors_dbo.Areas_setorAreas \ ". The conflict occurred in database...
asked by 08.06.2016 / 18:43
1
answer

Difficulty with Regex

I have the following content in a string :    | 1300 | 11349 | 03042016 | 10857,000 | 000 | 10857,000 | 444,470 | 10412,530 | 25,530 | 0,000 | 10387,000 |   | 1310 | 8 | 4657,000 | 000 | 4657,000 | 444,470 | 4212,530 | 53030 | 0.000 | 4...
asked by 30.05.2016 / 23:03