473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

LinkButton' Text can't include  ?

Why:
<asp:LinkButton Runat="Server" Text='D&nbsp;D'/>
result:D?D
not D D

How can I do for that?

Nov 19 '05 #1
2 1307
try:
<asp:LinkButton id="LinkButton1" runat="server">Link
Bu&nbsp;tton</asp:LinkButton>

--
Remy Blaettler
Helping you collaborate better!
www.collaboral.com
"farmer" <sd******@sina.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Why:
<asp:LinkButton Runat="Server" Text='D&nbsp;D'/>
result:D?D
not D D

How can I do for that?

Nov 19 '05 #2
I'm surprised it's working at all, since I do not believe that 'Text'
is a valid attribute for a LinkButton.

If you do:

<asp:LinkButton Runat="server"
id="LinkButton1">D&nbsp;D</asp:LinkButton>

I believe you'll get the desired result.

HTH,
Kevin
farmer wrote:
Why:
<asp:LinkButton Runat="Server" Text='D&nbsp;D'/>
result:D?D
not D D

How can I do for that?


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Robert Mark Bram | last post by:
Hi All, I am using the following trim function: function trim (str) { return str.replace(/^\s*/g, '').replace(/\s*$/g, ''); } The problem is that this doesn't trim instances of the...
2
by: mortb | last post by:
A validator that is not displayed will render a &nbsp; tag in the output page. This cuases me problems as I don't wnat anything to show in this case. Is there any way to get rid of the &nbsp; ? ...
5
by: Tim | last post by:
Hi, I am trying to load up a drop list with semi aligned columns like so: Item 2 Something Else etc. To do so, I have tried to fill the Text valus of ListItems like so:
6
by: Tina | last post by:
in the itemDatabound event of a datagrid, both null fields and blank string come through as &nbsp; in the e.items.cells field. Is there anyway to tell them apart? Thanks, T
3
by: yawnmoth | last post by:
<? echo 'a'.trim(html_entity_decode('&nbsp;a&nbsp;')).'a'; ?> Shouldn't PHP output aaa? Looking at the documentation for trim I see that it doesn't support chr(0xA0) (eg....
28
by: entfred | last post by:
I have the following line of html: &nbsp;&nbsp1234&nbsp;&nbsp;&nbsp;&nbsp;&nbspabc&nbsp;&nbsp;&nbspyow In Internet Explorer 6.0, the columns look ok using the above html: 1234 abcd ...
2
by: burntmatch2 | last post by:
I am needing help with this. Only when there is more than two consecutive spaces, it truncates replacing them with a SPACE + ANSISPACE like ' &nbsp;'. So like, EXAMPLE BEFORE: The quick...
7
by: Sebarry | last post by:
Hi, I'm having trouble creating a blank table row in Javascript using document.createElement( '&nbsp;' ). When I look at the generated source it has intrepreted it as <td>&amp;nbsp;</td>. What do I...
1
by: anilraghuvanshi | last post by:
Hi All, We are displaying some text in text box coming from database. We set this value in text box using one Js function. problem is that the string is like "My Name" having <space> beteen them...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.