Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp.net c# html tags in database? possible

Status
Not open for further replies.

flyclassic22

Technical User
Oct 1, 2002
54
SG
hi, i have a column a "text" type, i wish to let user input html tags into the column from a multi line textbox.

However, alot of " and ' chars are disturbing my insert sql statement. What do i have to do to store tags inside database? as in <> and </> etc..? do i need to do replace " all that? any articles to refer to?

btw, if i use sqlparameters to insert sql, i assume all characters like " or ' can be inserted ?

desperate help needed..

 
btw, if i use sqlparameters to insert sql, i assume all characters like " or ' can be inserted ?
Yes, that's what you need to do.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top