devxlogo

Give Focus to a User-Select HTML Control in VID 6

Give Focus to a User-Select HTML Control in VID 6

Although the Scripting Object Model (SOM) in Visual InterDev 6 makes for quick development, it doesn’t cover all the functionality that you need. For example, in Visual Basic it is easy to give any control the focus. That functionality isn’t built in to VID 6, so you need a combination of server-side and client-side script. The trick is to use some inline ASP/SOM coding to generate the client-side code that gives the focus. In this snippet, the third line gives the focus (a client-side method) to a control that the user selected with a server-side control (Listbox1).

 
See also  How IoT Tech Will Transform Logistics
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist