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

Standard

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.

 

 

Advertisements

Multiline in LinkLabel Control

Standard

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:

linklabel

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