Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CCS not quite right in a HyperLinkColumn

0 views
Skip to first unread message

Rob T

unread,
Aug 16, 2002, 10:22:03 AM8/16/02
to
Hi. I have a DataGrid which uses a HyperLinkColumn. I'm using a stylesheet
where when you hover over the hyperlink, it highlights and other fancy
stuff. However, when the HTML is produced, the class is put in the <td>
instead of the <a href> area...so the hover styles don't work. Is there any
way to get the class into the right area???

Here's the code that is generated:
<td class="NormalHref"><a href="Details.aspx?id=123">WCT300-1N1</a></td>

What it should really be is:
<td><a class="NormalHref" href="Details.aspx?id=123">WCT300-1N1</a></td>

My sample code looks like this:
....
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="Item #"
DataNavigateUrlFormatString="Details.aspx?id={0}" DataTextField="Item #"
ItemStyle-CssClass="NormalHref"/>
</Columns>
....


Cath

unread,
Aug 31, 2002, 5:25:35 AM8/31/02
to
Following-up on this... I have the same question... only mine is with
regards to the header area. My headers are hyperlinked because my datagrid
allows sorting. How I can get the CSS class into the right area?


"Rob T" <rtorc...@NOwalchemSPAM.com> wrote in message
news:e3##bATRCHA.3904@tkmsftngp12...

Rob T

unread,
Sep 5, 2002, 5:13:26 PM9/5/02
to
I have still had no success on this problem....if you find anything, please
let me know. Just remove the NO SPAM from my email address. Thanks!

"Cath" <cvi...@mydestiny.net> wrote in message
news:O7O63ANUCHA.4228@tkmsftngp08...

0 new messages