Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 06, 2012 02:29 AM by vicky1
Member
32 Points
349 Posts
Oct 04, 2012 03:38 PM|LINK
Hi all,
Hope doing well,
sir i am using rich textbox for my application to save the data in database. when it is saving the data in database with html tag.
and when i am fetching this in gridview it's looking odd.
can i trim my richtext box so that i can not insert html tag only text?
please help me.
thanks in advance.
Participant
872 Points
141 Posts
Oct 06, 2012 02:26 AM|LINK
you can not. you have to create a custom parser to detect if html code was used and replace them with something before you save
Oct 06, 2012 02:29 AM|LINK
Hi sir,
i have done it before while inserting data in database i used regex and spliting those html tags.
it's working as charms.
thanks for your suggestion.
now no issues in that.
vicky1
Member
32 Points
349 Posts
How to Trim richtext box so that it should not insert text with html tag?
Oct 04, 2012 03:38 PM|LINK
Hi all,
Hope doing well,
sir i am using rich textbox for my application to save the data in database. when it is saving the data in database with html tag.
and when i am fetching this in gridview it's looking odd.
can i trim my richtext box so that i can not insert html tag only text?
please help me.
thanks in advance.
jackym
Participant
872 Points
141 Posts
Re: How to Trim richtext box so that it should not insert text with html tag?
Oct 06, 2012 02:26 AM|LINK
you can not. you have to create a custom parser to detect if html code was used and replace them with something before you save
vicky1
Member
32 Points
349 Posts
Re: How to Trim richtext box so that it should not insert text with html tag?
Oct 06, 2012 02:29 AM|LINK
Hi sir,
i have done it before while inserting data in database i used regex and spliting those html tags.
it's working as charms.
thanks for your suggestion.
now no issues in that.