Powered by Blogger.

Saturday, October 28, 2017

How to add font tag to string C#.net?

Here we will see how we can add font tag to a string in C#.Net.

Below is a function where I have added the font tag to a string.

Also you can read:
- Remove column from datatable in Asp.Net

- How to split a string by another string in C#.Net?

- How to check string contains text in JavaScript?

Below is a function which will take a body as parameter and will add the font tag and return the string.

public static string AddFontToEMailBody(string body)
            string s= "<FONT FACE=\"Verdana\">" + body + "</FONT>";
            return s;


Hope this will be helpful.