Hi Guys, I have the following code that populates a ListBox for me. Currently all of my items are getting inserted into the ListBox. My goal is to detect if the ListBox item is an orphan page. If so then I want to color the background of that item to red using the style tag. I am able to detect if the file is an orphan, however, I am not able to add the style tag to that item. Any ideas on how to do this? iStyle = " background-color: Red "; if (tab.ShowTab == true) { TabItem t = new TabItem(); t.TabName = tab.TabName; t.TabId = tab.TabId; t.TabOrder = tab.TabOrder; portalTabs.Add(t); portalTabs.Add("iStyle"); }
Thanks in Advance!
Graphfixz
Posts
-
Setting ListBox Items to different colors -
Help with DateTimePickerwell I don't know. This is the error I am getting: Line 9: Line 10: Line 11:
Line 12: Line 13: where Line 11 is causing the error. :confused::mad::sigh::((
-
Operation must use an updateable queryit means the database needs read, write permissions.
-
Help with DateTimePickerHi Guys and Gals, I can't seem to make the DateTimePicker Web Control work for me. I am trying to incorporate it into the IBS C# Portal. Does anybody know how to do this? Currently I am getting this error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Thanks in advance!:confused: