Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

stripping out spaces in dynamic text fields?

LEGEND ,
Aug 09, 2006 Aug 09, 2006

Copy link to clipboard

Copied

Hi,
How do I alter this to hide any white spaces:
<%=(rsRecordset.Fields.Item("nvarcharfield").Value)%>

For example, if the nvarchar field contained "Mr J R Ewing", this would
display on the page as:
MrJREwing

Can't find anything on this.

Thanks.
Nath.


TOPICS
Server side applications

Views

239
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 10, 2006 Aug 10, 2006

Copy link to clipboard

Copied

LATEST
Since you are using ASP, use the VBScript Replace function to strip out the spaces, replacing them with nothing, i.e. ""

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines