Click here to Skip to main content
15,920,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I have 5 link buttons in my asp page, displayed vertically one below the other with each one separated by
tag. This page based on conditions, display all the five or less than five. If only 3 are to be shown(1st, 3rd, and 5th) based on some condition, I am making the other links(2nd and 4th) invisible. But, I am unable to remove the space it was occupying(if displayed). i.e., I need to show 1st, 3rd and 5th links continuously one after another. how can I achieve this?

Thanks,
Bharadwaj.
Posted
Comments
R. Giskard Reventlov 24-Jun-11 8:17am    
We need to see what it looks like now.

This can be done by setting the visibility to collapsed.

visible : The generated box is visible.

hidden : The generated box is invisible (fully transparent, nothing is drawn), but still affects layout. Furthermore, descendants of the element will be visible if they have 'visibility: visible'.

collapse : Please consult the section on dynamic row and column effects in tables. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Jun-11 21:35pm    
Correct, a 5.
--SA
hi dear place all the textbox in DIV tag
and then try it
getproductprice.com
 
Share this answer
 
Comments
bedathur_ganesh 24-Jun-11 9:08am    
Thanks pervej111.. It solved my problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900