替换和放大器的空间; NBSP;从记录 [英] replace spaces with   from a recordset

查看:103
本文介绍了替换和放大器的空间; NBSP;从记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我将如何能够在记录更改空间由记录返回。

hi guys how will i be able to change "spaces" on records being returned by a recordset.

例如我有这个code,将返回李四的值:

for example I have this code that will return a value of "John Doe":

<td width="30%"><%=rsTmp("Name")%></font></td>

我想这样做是要改变的话之间的空间为:

What I would like to do is to change the space between the words into:

&nbsp;

所以,当我的网页得到拥挤的名称为李四仍然会在一条直线上,不会被分开。

so that when my page got congested the name "John Doe" will still be in a straight line and will not be separated.

在此先感谢!

推荐答案

我解决了!
我用替换这样的功能。

I resolved it! I used replace function like this.

<% Replace(rsTmp("Name")," ","&nbsp;")%>

这篇关于替换和放大器的空间; NBSP;从记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆