rclayh
|
| Posted: 05/15/2003, 8:08 PM |
|
Okay - this time I DID read the help file. I have two elements in a grid. One is an ImageLink - ImageLink2. One is a label - EndDate. If EndDate has a value say 05/12/2003, I want ImageLink2 to NOT show. If EndDate is empty or null, then I want EndDate to NOT show. I'm using ASP.NET with VB. The help file says something about ResponsesEndDate but the compiler chokes. EndDate.Visible gets an EndDate not declared. Any help grately appreciated.
|
|
|
 |
rclayh
|
| Posted: 05/15/2003, 9:06 PM |
|
It's in the help file but the key thing is that if an element appears later, it HAS NOT been declared (dimmed) so you can't take an action on it. In this case my Label was appearing before my ImageLink so attempting to hide the Link with code in the Label event was failing (the Label had been created but the Link had not). By putting code in each (the Image Link COULD test the Label because the Label had already been declared) I could get the desired result.
Naming conventions are very simple once you understand them. I suggest when working on a page open the tree view for the page. If ImageLink1 is in Object vwDailyTime - it's object name is vwDailyTimeImageLink1.
CCS2 is still amazing me at what all it can do.
|
|
|
 |
|