Display Memo Field (Full Version)

All Forums >> [Web Development] >> Expression Web Help



Message


jgport -> Display Memo Field (7/30/2007 15:51:56)

I am trying to display a memo field using Expression Web and ASP.NET. The ASP.NET control I am using is detailsview. The memo field is from an Access database and has multiple lines. The field is displayed however the entire memo field is displayed on a single line. It appears that the newline characters need to be converted to an HTML <br>. Is there an easy way to do this in EW.

Thanks,

Jim




WantToLearn -> RE: Display Memo Field (7/30/2007 18:11:29)

One way is to convert the details view memo field into a Template Field and then use a custom databinding expression, like so:

<%# eval("memofieldname").Replace(Chr(13), "<br>") %>




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875