Questions tagged as 'c#'

3
answers

Dynamic Path C #

I'm looking for a way to leave the path of a file inside my project dynamically, it's currently like this: string arquivoImagem = @"D:\Projetos\ProjetoSolution\Projeto.Web\Images\Gerenciador\login\logo.png"; I would like to leave this fixed...
asked by 20.09.2017 / 19:21
4
answers

Prevent user from saving information in bank

Hello, I'm using Windows Form C # Visual Studio , how do I prevent the user from saving the information in the database without filling in the required fields, ie those% in> C # . I tried with (NOT NUL) as below, but it did not work....
asked by 26.07.2014 / 23:33
4
answers

Email confirmation?

I need to send emails to my business customers, but I also need to know if these emails are successfully received. Do you have any way to do it? What would be the best?     
asked by 17.07.2014 / 19:40
1
answer

SNS AWS in .NET C #

Has anyone implemented SNS in AWS with C #? I've implemented the code below in an attempt to send a topic created by the console, but I need to do everything for our ADM in .NET. Follow the code that I'm trying to upload by topic. It does...
asked by 26.04.2015 / 19:18
0
answers

"Error" when loading data

I have a screen whose given "Reference Date" field receives the next available date from a file, following the dates that are in the database. On the side of the field I have a "calendar" icon which when triggered should load the calendar....
asked by 21.04.2015 / 16:57
2
answers

Rename field in a lambda

In SQL I do this: select campo1 as teste from tabela And in a lambda ? How would I do it? I have this lambda with multiple tables and the ValuePayment field repeats several times. var qry = db.User.Join(db.Solicitation, user =>...
asked by 17.09.2018 / 19:23
1
answer

SQL does not work on another device after publishing to the web

Why can not my page run queries to the bank when it is published on the web and being used from other devices (networked computers and smartphone)? If I use the computer itself (server), I can access it normally. Would it be any SQL Server co...
asked by 11.05.2014 / 17:57
1
answer

Convert datatables in ASP.NET to different Excel SHEETS

How can I create more than sheets converting different datatable to excel? My code: DataTable dt = new DataTable(); dt = Tr.Get(); GridView x = new GridView(); x.DataSource = dt; x.DataBind();...
asked by 19.04.2014 / 15:25
1
answer

How do I not lose the rows of my GridView that were created dynamically in RowDataBound?

Thegridisalreadybeingmountedcorrectly.ButwhenIgiveaPostBackbyclickingonabuttononthepage,thegridstaysandonlytheheaders(purplelines)disappear.IknowifIcallthemethodtoreloadthegridagain,itworks,butitdoesnotseemtometobeagoodthingtodo.Codeforcreatingd...
asked by 13.11.2014 / 18:05
1
answer

How to use a literal tuple as property of a class in C # [closed]

Hello, I'm working with C # and read about literal tuples. With this, I'm creating the class below: public class Foo { public (int bar, string bin)? barBin { get; set; } } In theory, for me to be able to use this class and assign val...
asked by 05.09.2018 / 14:43