Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 11th, 2008, 03:25 PM
=?Utf-8?B?RGFu?=
Guest
 
Posts: n/a
Default 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?
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles