TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vuk Stanojevic
1.6k
140
45.6k
C# email body displays as HTML
Apr 5 2020 12:21 PM
Hi everyone,
I create email app.
In listview i display date,from,Message(body).
I have a problem that message body displays as HTML code.
How i can convert it to normal text?
I try with HtmlDecode but it didn't solve my problem.
EmailMessage message = EmailMessage.Bind(Service,item.Id);
string date = message.DateTimeReceived.ToString();
string from = message.From.Name.ToString();
string body = message.Body.Text.ToString();
ListViewItem item1 = new ListViewItem();
item1.SubItems.Add(date);
item1.SubItems.Add(from);
item1.SubItems.Add(body);
listView1.Items.Add(item1);
Reply
Answers (
2
)
'InvalidArgument=Value of '1' is not valid for 'index'.
ComboBox Issue selectedIndexChanged