CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 lisbox elemnts losing style

Print topic Send  topic

Author Message
dragoon


Posts: 173
Posted: 11/26/2007, 6:05 AM

Hello there,

I have a grid and a record form on a page.
On the record form I have 2 listboxes that have some elements highlighted (i.i. font color red)

The problem is, that after a postback (selecting a different page from the grid), the listboxes loses their style.

The style is inserted in BeforeShow event and looks like this:
  
foreach(ListItem li in usersLinkedListBox.Items) {  
	if (condition) {  
		li.Attributes.Add("style", "background-color: red;");  
	}  
}  

Any ideas? Should I place this code in a different event?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.