HyperLinkField CssClass not working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RGFu?=

    HyperLinkField CssClass not working

    I am creating the content for my Gridview through code. My last column is a
    hyperlinkfield. Everything is working fine except for applying my CssClass
    to the HyperLinkField. I have tried the following:

    hyperlinkfield. ControlStyle.Cs sClass = "MyClass"

    However, this generates no html output to the page and the style is not
    applied. If I set the code using the ItemStyle instead of controlStyle, it
    gets applied to the <tdtag. I need to have the style applied to the
    hyperlink. Any thoughts on why I do not see code when I set the controlStyle?
Working...