I am storing data in html format in sql server, so i want to retrieve in gridview, i need to exlude html tags, so that data should look clean, please help me out ?
6 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Be careful what you ask for; you will likely get it here. I suspect that what you want is not what your question asks for.
Do you want to exclude just the tags or do you want to show the document formatted or do you want to show just the text? I suspect that "retrieve in gridview" means you need to show the documents formatted.
1 thing that you should be very careful is about sql injection and script injection when you do that or welcome to a world of havoc. Lol. Anyways, the below link is a simple google search with the 'right' keywords. Just take a look, it will help you.
Suthish NairPosted Mar 1, 2011, 11:11 AM
Kiran NathPosted Mar 1, 2011, 10:05 AM
thanks for reply but if i bind the data , tags are also including in label
plz help me out to exclude the tags
thank u
Kiran NathPosted Mar 1, 2011, 9:59 AM
Just I want to exclude the tags and save it in label to view
Plz give me some code
Sam HobbsPosted Mar 1, 2011, 12:34 AM
Be careful what you ask for; you will likely get it here. I suspect that what you want is not what your question asks for.
Do you want to exclude just the tags or do you want to show the document formatted or do you want to show just the text? I suspect that "retrieve in gridview" means you need to show the documents formatted.
Suthish NairPosted Feb 28, 2011, 12:52 PM
Pasan RatnayakePosted Feb 28, 2011, 12:11 AM
1 thing that you should be very careful is about sql injection and script injection when you do that or welcome to a world of havoc. Lol. Anyways, the below link is a simple google search with the 'right' keywords. Just take a look, it will help you.
http://www.google.lk/search?sourceid=chrome&ie=UTF-8&q=url+encoding+C%23