> It is a server side control so how can I trigger the JavaScript
If you add an onchange attribute containing the Javascript to the
control from your Page_Load event, then it'll be run when the user
changes the selection [I'm presuming there's no postback until the user
explicitly clicks Submit or whatever]. The attribute should just be
attached to the <select...> tag created by the server control.
So use
my_dropdown . Attributes . Add( "onchange", "this.blur();" ) ;
-- PH
"Paul Henderson" <pa***********@pittville.demon.co.uk> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com... I have a common problem that when the user changed the selection in the
DropDownList control and the program responded appropriately the focus
remains there and if the user will press on the Arrow Up or arrow down
buttons the selection of the DropDown will change which is not normally
required
Is there any way to remove the focus away from the dropdown control?
Perhaps the easiest way to do this would be to put some Javascript to
be executed on the client side after the user changes their selection
in the dropdown; you can call the this.blur() method in the client-side
Change event for the dropdown to remove the focus from it.
-- PH