Simple Question, the string im saving into my database uses char(10) to represent new line, i want to replace it with <br />
before saving it into the database so its displayed as an actual new line when i view it in a html page.
how im supposed to do that ? since there is no char(10) in c#
im using:
StringName.Replace("char(10)", "<br />");
which doesnt work.
my Code :
var InscriptionText = Request["InscriptionText"];
InscriptionText.Replace("\n", "<br />");
var qry = "Instert into .." (normal query)
db.query(qry);
then i view the data in the databse to find that it didnt replace it and its saved as "line1line2line3line4"
");`. – Maximilian Gerhardt Apr 24 '16 at 20:03
");` – Shaharyar Apr 24 '16 at 20:13