Display Text with Consecutive Spaces and Carriage Returns on a Web Page
Category:
ASP, HTML and XMLType:
SnippetsDifficulty:
BeginningAuthor: Intelligent Solutions Inc.
Version Compatibility: ASP
More information:
Text with consecutive spaces or carriage returns (e.g., data from Access memo or SQL Server text fields) will not display properly on a web page because the browser ignores spaces and carriage returns after the first space. You could just surround the text with <PRE></PRE> tags, but this prevents you from applying any font, size or other HTML formatting. Instead, you can use this ASP function.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: