Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys in my htm page there is 2 dropdowns which i fill using c# dynamically(using string builder)

But based on certain condition i have to hide them the problem is the the two dropdowns are aligned vertically.. so when i hide one it leaves a blank space ruining my design.. Is there a way to avoid it



PS: THe dropdowns must be aligned vertically :(
Posted
Comments
AshishChaudha 29-Jun-12 1:10am    
What you have did so far??
Sandeep Mewara 29-Jun-12 1:57am    
How are you hiding it? Are you doing it via client code (Javascript)?
Arjun Menon U.K 29-Jun-12 2:34am    
No actually am using c# codes to create html controls using strinbuilder
Sandeep Mewara 29-Jun-12 2:58am    
You mean you are working on ASP.NET?
Arjun Menon U.K 29-Jun-12 3:51am    
Its actually a web apps but using c#+html

1 solution

Put each dropdown in
container and assign unique CSS Class name to each then hide them acordingly

for eaxmple:

........ code for dropdown



javascrript code:

$(".dd1").hide();
 
Share this answer
 

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