WebButton: style for dynamically created button

2 replies. Last post: September 6, 2009 10:37 PM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
matthiasmaxMember

Hi,

 I'm creating WebButtons dynamically on postback. The problem is that they differ in style for some reason. I didn't care about style yet and still the first one has a style while the later added buttons don't have a style. The first button is loaded on the FIRST page load (so not on a postback) while the others are loaded in postbacks in an AJAX Panel.

 The buttons get assigned to classes automatically and that seems to be the problem. FireBug shows me the classes and for 2 of the 3 these classes don't exist.

 

See attached file for a screenshot.

 

How can I handle styles for dyn. created buttons in the code-behind file? Or how can I assign them hard to a CSS file?

 

Thank you

1 attachment
All times are GMT -5. The time now is 2:56 PM.
Previous Next