Perhaps you are familiar with the old:
<nobr style="OVERFLOW:hidden;width:100px;TEXT-OVERFLOW:ellipsis">blah blah
blahblah blah blah blah</nobr>
technique.. Well, within a gridview, if I use this technique for a field, it
just sort of ignores it. If I isolate out this line in a seperate .html
file, it works as expected. Also, if I do a view source on the resultant
output from my .aspx page - it seems like it should work. For example, here
is the output:
<td nowrap="nowrap">
<nobr style="OVERFLOW:hidden;WIDTH:7*5px;TEXT-OVERFLOW:ellipsis"><a
href="RequestDetail.aspx?Request_ID=5">this is a long link that should be
shortened with ellipses at 75px, but it's not</a></nobr>
</td>
I've tried putting the logic into a css class and apply an ItemStyle for
it - also have tried nesting this different ways:
<span><nobr><a href></a></nobr>
<a href><nobr></nobr></a>
etc, etc... Anyone get this working or know of how I can?? Thanks much! 3 4843
1. you'll probably want to handle the ItemDataBound event, and manually
put in the nobr and link there, in the correct order
2. i tried that technique and it didn't seem to work in Firefox. Is
there an xbrowser way to do it?
thx
Neil
Ugh. Well, after literally disassembling the output to almost 8 lines of
code - it turns out this line at the top:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Which I still don't know, what it does - if that line is present, this
feature breaks... just in case someone else runs across this...
"RCS" <rs****@gmail.com> wrote in message
news:m%*****************@newssvr30.news.prodigy.co m... Perhaps you are familiar with the old:
<nobr style="OVERFLOW:hidden;width:100px;TEXT-OVERFLOW:ellipsis">blah blah blahblah blah blah blah</nobr>
technique.. Well, within a gridview, if I use this technique for a field, it just sort of ignores it. If I isolate out this line in a seperate .html file, it works as expected. Also, if I do a view source on the resultant output from my .aspx page - it seems like it should work. For example, here is the output:
<td nowrap="nowrap"> <nobr style="OVERFLOW:hidden;WIDTH:7*5px;TEXT-OVERFLOW:ellipsis"><a href="RequestDetail.aspx?Request_ID=5">this is a long link that should be shortened with ellipses at 75px, but it's not</a></nobr> </td>
I've tried putting the logic into a css class and apply an ItemStyle for it - also have tried nesting this different ways:
<span><nobr><a href></a></nobr> <a href><nobr></nobr></a>
etc, etc... Anyone get this working or know of how I can?? Thanks much!
I think the
//W3C//DTD XHTML 1.0 Trans...etc, etc...
refers to the standard by which the document should conform. Perhaps
<nobr> is not supported in that standard.
I would also be interested if anyone has any more info.
Jeff
On Fri, 02 Dec 2005 17:50:46 GMT, "RCS" <rs****@gmail.com> wrote: Ugh. Well, after literally disassembling the output to almost 8 lines of code - it turns out this line at the top: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Which I still don't know, what it does - if that line is present, this feature breaks... just in case someone else runs across this...
"RCS" <rs****@gmail.com> wrote in message news:m%*****************@newssvr30.news.prodigy.c om... Perhaps you are familiar with the old:
<nobr style="OVERFLOW:hidden;width:100px;TEXT-OVERFLOW:ellipsis">blah blah blahblah blah blah blah</nobr>
technique.. Well, within a gridview, if I use this technique for a field, it just sort of ignores it. If I isolate out this line in a seperate .html file, it works as expected. Also, if I do a view source on the resultant output from my .aspx page - it seems like it should work. For example, here is the output:
<td nowrap="nowrap"> <nobr style="OVERFLOW:hidden;WIDTH:7*5px;TEXT-OVERFLOW:ellipsis"><a href="RequestDetail.aspx?Request_ID=5">this is a long link that should be shortened with ellipses at 75px, but it's not</a></nobr> </td>
I've tried putting the logic into a css class and apply an ItemStyle for it - also have tried nesting this different ways:
<span><nobr><a href></a></nobr> <a href><nobr></nobr></a>
etc, etc... Anyone get this working or know of how I can?? Thanks much!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jeffmagill |
last post by:
Hi Everybody,
I'm really hoping that someone can help me out because I have spent too
much time on this project already!
Basically, I have a DetailsView that handles all the Edits for a...
|
by: nolan |
last post by:
I have an asp.net 2.0 page with a gridview and detailsview on the same
page set up in a master-details scenario. The gridview and detailsview
have separate SQL data sources. The user enters...
|
by: Tomasz Jastrzebski |
last post by:
Hello Everyone,
I have a GridView control bound to a plain DataTable object.
AutoGenerateEditButton is set to true, Edit button gets displayed, and
RowEditing event fires as expected.
|
by: luvdairish |
last post by:
Controls (in order on page)
1.)GridView - each row is a work order w/ a link for details in the
last column
2.)DetailsView - when user clicks on link from above GridView, the
details are shown...
|
by: luvdairish |
last post by:
Controls (in order on page)
1.)GridView - each row is a work order w/ a link for details in the
last column
2.)DetailsView - when user clicks on link from above GridView, the
details are shown...
|
by: mike |
last post by:
I have a page with a LoginView which contains a Gridview and a
DetailsView, each in its own UpdatePanel
The problem that I am experiencing is that when I select a record in
the Gridview (using a...
|
by: needhelp1 |
last post by:
I have gridview with a detailsview below. When I click on 'New' in brings up the DetailsView for inserting. When I click on 'Edit' in does not brink up the DetailsView. What am I doing wrong? I...
|
by: David Ching |
last post by:
I am not getting any response to my previous question on reusing a
DetailsView to insert and edit the selected row in a GridView.
So I'll ask an even more basic question. Newbie alert! ;) When...
|
by: bogdan |
last post by:
Hi,
Can a single GridView be 'connected' to DetailsView that renders itself
differently based on the currently selected row?
I have a GridView with rows that could be displayed in the same way...
|
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...
|
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...
|
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,...
|
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...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |