R
RCS
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:75px;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!
<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:75px;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!