Solution of Problem: “The remote certificate is invalid according to the validation procedure.”


While sending email with code,you get this error.

Solution is simple!

Do not send it with SSL

//smtpClient.EnableSsl = true;

Comment/Delete this line if you have used.




Multiline in LinkLabel Control


LinkLabel control doesn’t have a property named “Multiline” perhaps but there’s a similar behaviour that does the job: “MaximumSize”

You just need to assign a number of characters allowed in a line:


Set it to a number and it will show as Multiline.