This tutorial will show how to replace VbCrLf with <br>, so that the input of a textarea gets formatted for display.
When making a insert or update in Ultradev/MX you just have to make a small insert to make this work.
Find the code that is commented with 'create the sql insert statement' or 'create the sql update statement'.
In this code find (Ultradev):
FormVal = Replace(FormVal,vbCrLf,"<br>")
If (i <> LBound(MM_fields)) Then
In this code find (MX):
MM_formVal = Replace(MM_formVal,vbCrLf,"<br>")
If (MM_i <> LBound(MM_fields)) Then
Insert the red marked replace command and the flat text in a textarea will formatted where the user has made a Return.
This is very handy when using just a form to maintain for example a news admin-tool.
That's it !
Marcellino Bommezijn is one of the managers at dmxzone.com. He is a contributor on the tutorials section.
Owner of Senzes Media (http://www.activecontent.nl) which provides professional services and web applications for mid-sized companies.
ActiveContent CMS is the ASP.NET Content Management solution that is used for building professional and rich-featured websites.