Return to Snippet

Revision: 34687
at October 27, 2010 04:42 by ramirocalero


Updated Code
para la parte del servidor

Environment.NewLine 



para javascript


observacion = oDetalleComprobante.Observacion.Replace("\n", "\\n");
observacion = observacion.Replace("<br />", "\\n");


string aRetornar = "";
if (descripcion != null)
{
aRetornar = descripcion.Replace("\n", "<br />");
HttpUtility.HtmlEncode(aRetornar);
return aRetornar;
}
else
return "";

Revision: 34686
at October 27, 2010 04:40 by ramirocalero


Updated Code
para la parte del servidor

Environment.NewLine 



para javascript


observacion = oDetalleComprobante.Observacion.Replace("\n", "\\n");
observacion = observacion.Replace("<br />", "\\n");

Revision: 34685
at October 27, 2010 04:30 by ramirocalero


Initial Code
Environment.NewLine

Initial URL
http://www.geekpedia.com/KB19_How-can-I-insert-a-new-line-in-a-TextBox.html

Initial Description

                                

Initial Title
Insert new line inside textboxs for VB.NET and C# and JavaScript

Initial Tags
line, c#

Initial Language
VB.NET