Wednesday, February 22, 2017

How to send encrypted mail in C#

It was a request of one of my client to send the mail as encrypted so that this kept secure while sending to customers. So after a search I found Jason Niver's code to be very handy to use. So I am sharing this will all so next time it becomes little bit easy to get.   using System; using System.Text; using System.Net.Mail; using System.IO; using System.Security.Cryptography.Pkcs; using System.Security.Cryptography.X509Certificates;   namespace...

best practice to replace in C#

In most of the application we have to replace a string with some value and sometimes it has to be used multiple times for multiple characters. Like first replace the dot(.) and then hyphen(-) and then some other characters. by using String.Replace(String,String) method we can easily replace one characters or we can use regular expression to replace the characters or stings. So for one character...

Tuesday, February 14, 2017

NOSCRIPT tag in HTML

This <noscript> tag defines the enable of javaScript in your browser. To state whether JavaScript is enabled or not in your browser we can use this tag. This works fully independently, means no other JavaScript or JQuery library are not needed to use this facility. First create a HTML page...

Popular Posts

Pageviews