Questions tagged as 'c#'

1
answer

Notifications Toast c #

Hello, how can I use Azure to notify the user who has new content in the app? I'm creating a project in c# to Windows 10 . Thank you in advance.     
asked by 14.08.2016 / 03:03
1
answer

How to solve Object Reference Not Set To An Instance Of An Object

I have a serious problem. I have a populated GridView with data from a BD MySql working perfectly. I also have a button to turn it into a table to be inserted into a PDF using iTextSharp which also works perfectly,
asked by 24.05.2017 / 03:09
1
answer

Image gallery asp.net and C # with problem to view the photo

I'm having trouble displaying the photo in the browser, the repeater brings all the info from the bank except the photo. I inserted the data manually into the database. // TABLE CREATE TABLE [dbo].[Imoveis]( [CodImovel] [int] IDENTITY(1...
asked by 12.08.2016 / 00:00
1
answer

Checking for a shortcut

I need to check the existence of a shortcut on the desktop of the computer, but the code below does not exit if (!File.Exists(pasta)) private void Instalando() { string pasta = Environment.GetFolderPath(Environment.SpecialFo...
asked by 23.05.2017 / 20:20
1
answer

Subtract from a number the values to your right in a list

I have a situation that is as follows: Given an array with for example 5 positions [5, 10, 8, 2, 7] I need an algorithm that will allow me to do the following: Get 5 and subtract by the numbers that are after your position [1...
asked by 24.05.2017 / 14:03
2
answers

Login in C # with database [closed]

I'm trying to make a login panel, but it does not recognize the data recorded in the database. Code: SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\TutoDS\Desktop\Trabalho Programação -...
asked by 17.05.2017 / 22:22
3
answers

When and why should we use threads?

When and why should we use threads? I would like some examples.     
asked by 01.08.2016 / 20:05
4
answers

ASP.NET MVC input number

I'm trying to use a input with type=number , however in Chrome you're giving the value you entered should be a number. The problem is in the model state that is returning invalid, because when giving the post, it is entering Crea...
asked by 19.07.2016 / 15:43
1
answer

The client entity type is not part of the template for the current context

I'm trying to reproduce this example of EntityFramework with standard repository, as follows the link: link But it is giving the error described in the topic title. I'll post the codes. The first is the class BancoContext.cs: using...
asked by 24.07.2016 / 04:23
1
answer

Preventing duplicate data

I want to prevent the registration of a person whose CPF has already been registered. I tried to do something but it was an error because I defined the CPF field as constraint . Instead of giving the error I would like to be shown a message adv...
asked by 19.07.2016 / 22:17