Search code examples
asp.netjavascriptdrop-down-menudirection

Can an asp:DropDownList set to be displayed in a particular direction; up or down?


Is it possible to set the direction that an asp:DropDownList appears on a page (e.g. up or down) in a code-behind/with javascript irrespective of how a browser will render it?


Solution

  • No, you can't manipulate it's behaviour, but you can emulate dropdown lists with javascript, likely with a framework (jQuery, ExtJS, etc.).