Questions tagged as 'c#'

1
answer

How to generate a hash for the user password with ASP.NET MVC and .NET 4.5

I'm implementing a user authentication / registration feature with ASP.NET MVC 4.5, but I can not find a more correct way of working with passwords in the database, I do not want to simply generate an MD5 and write to the database . Is there...
asked by 26.02.2016 / 21:47
1
answer

Perform a select and return the emails in a list

My question is this: I am studying C# and I am working on a project (study only) of student registration. I made a form to send e-mail if the student misses the school, except that I did not implement the faults column and I am doing the...
asked by 27.02.2016 / 19:06
1
answer

Creating connection with MySQL with FluentNHibernate?

I'm trying to create a connection to MySQL using NHibernate and FluentNHibernate. I added by% n of% but when I try to create the connection MySql.Data is not found in the context. I'm trying like this. private static ISessionFactory...
asked by 27.02.2016 / 02:28
1
answer

Write data from a DataGridView

Hello I have this DataGridView below: IneedtogothroughtheDataGrid,checkthecheckboxesandrecordthedatafrom(Quantity:QtyandProductcode:product_code).IgotwithStackhelptomakethiscodebelow:privatevoidbtnIncluir_Click(objectsender,EventArgse){tr...
asked by 19.11.2015 / 15:12
1
answer

Print Width on Thermal Printer, WPF, and C #

Hello, I am making a program to print a list of activities on thermal printers, in it I put this information inside a table (created in code only for printing, with a total width of around 250, and a font size of 12) , and the table inside a Flow...
asked by 20.11.2015 / 18:45
1
answer

Post null in the MVC edit

Hello, I have the following situation, my Edit returns a group of Classes filled for editing. In my View the data is filled correctly, however, when I edit a field and send save in Edit (Post) my Model arrives...
asked by 09.12.2015 / 12:31
2
answers

How to use Firebird database on the network with C #?

I developed a C # Windows Forms application with Firebird database and I need to put the application with the database on a machine that will be a server type. With this, I need to access this database from the server by other machines that will...
asked by 30.11.2015 / 17:55
1
answer

Define multiple styles for a UserControl through StaticResource's in WPF

I'm starting to work with WPF because of its similarity to HTML. I noticed through my searches that when I use an expression like this Style="{StaticResource MeuStyle}" it looks a lot like a class definition that I have in html ( class...
asked by 26.01.2016 / 18:54
1
answer

Sending email asp net - Gmail [duplicate]

Follow the email sending code, The reported error is in google's SMTP access. StringBuilder conteudo = new StringBuilder(); conteudo.Append("O Srº(ª) " + "<b>" + txtNome + "</b>" + " entrou em contato pelo site no di...
asked by 22.01.2016 / 18:01
1
answer

How to ignore an error using Json.NET without damaging what has already been read

Is there any way to continue "deserializing" an object using Json.NET , even when a property is corrupted and without damaging the which has already been "read"?     
asked by 26.01.2016 / 02:58