473,587 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Has anyone got ellipses working in a gridview or detailsview?

RCS
Perhaps you are familiar with the old:

<nobr style="OVERFLOW :hidden;width:1 00px;TEXT-OVERFLOW:ellips is">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:ellips is"><a
href="RequestDe tail.aspx?Reque st_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!
Dec 2 '05 #1
3 4851
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

Dec 2 '05 #2
RCS
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.dt d">

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.c om> wrote in message
news:m%******** *********@newss vr30.news.prodi gy.com...
Perhaps you are familiar with the old:

<nobr style="OVERFLOW :hidden;width:1 00px;TEXT-OVERFLOW:ellips is">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:ellips is"><a
href="RequestDe tail.aspx?Reque st_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!

Dec 2 '05 #3
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.c om> 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.dt d">

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.c om> wrote in message
news:m%******* **********@news svr30.news.prod igy.com...
Perhaps you are familiar with the old:

<nobr style="OVERFLOW :hidden;width:1 00px;TEXT-OVERFLOW:ellips is">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:ellips is"><a
href="RequestDe tail.aspx?Reque st_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!


Dec 2 '05 #4

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

Similar topics

0
1867
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 GridView - each row has an edit button and clicking on this should trigger that record to be loaded into the DetailsView for editing. The problem is that...
2
6240
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 search criteria in a text box and clicks a find button to initially populate the gridview with items of interest. I have added a select button to my...
4
26690
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.
0
2119
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 3.)GridView - nested in the footer of the above DetailsView. each row is a person assigned to that work order 4.)DetailsView - only visible when the...
0
1588
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 3.)GridView - nested in the footer of the above DetailsView. each row is a person assigned to that work order 4.)DetailsView - only visible when the...
2
11622
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 SelectButton), the selected record is shown in the DetailsView, which is correct - however, when I choose "Update" on the DetailsView I am...
1
5003
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 totally at a loss, please help. I don't know if I need to something to grdUserProfile_RowEditing. Thank you! This is some of my code behind: ...
2
4378
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 the user clicks the Edit link in a GridView, is it common to use a DetailsView to edit that row instead of putting the GridView into Edit mode and...
2
2497
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 in the view (like a report) but when a user wants to edit/insert items I'd like to show a different layout and different controls based on the...
0
7918
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5713
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.