1

I hate asking for help on what I know has to be an easy fix, but for the life of me I can't figure out where my problem lays.

I have a SQL database on my ASP.net project and for some reason, I am now picking up HTML tags in my strings.

For example, this sentence:

"Additional Settings" is completely greyed out.

will turn into this:

@quot;Additional Settings@quot; is completely greyed out.

The sentences are typed in manually so it can't be there, the columns are saved as varchar(max) so I dont think it could be there. When I bring it into a gridview it looks fine. Its when I use:

 GridView1.Rows(0).Cells(5).Text

That I receive my strings with HTML tags.

Why is my gridview exporting strings with html tags when I didnt enter them with html tags and didnt save them with html tags?

Thanks guys for the help.

1

1 Answer 1

0

Yeah of course I figure out the answer on the very next web page I read dohhh >_<

 HttpUtility.HtmlDecode(DefectsGrid.Rows(lines).Cells(5).Text)

Sorry guys for wasting your time

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.