javascript - C# Set Focus To 3rd Party Controls -
i have 3rd party drop down treeview in asp.net c# code
<ct:asdropdowntreeview id="astvmytree" runat="server"... />
i'd set focus on in code behind. c# control.focus() works on windows controls. i've tried javascript
scriptmanager.registerstartupscript(page, this.gettype(), "control_focus", "asdropdowntreeview.focus();", true);
but doesn't work either. there way i'm supposed declare 3rd party controls in javascript or work on html , windows controls?
you need find control name on client side somehow. asp.net controls have clientid property tell control name on client side. if controls have similar can use this.
other option run page, view html source , see client name.
Comments
Post a Comment