469,962 Members | 2,365 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

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.CssClass = "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?
Aug 11 '08 #1
0 1711

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by John Smith | last post: by
reply views Thread by pargat.singh | last post: by
1 post views Thread by pargat.singh | last post: by
8 posts views Thread by =?Utf-8?B?TWlrZSBSYW5k?= | last post: by
2 posts views Thread by shapper | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.