devxlogo

Pass PARAM to OCX From ASP

Pass PARAM to OCX From ASP

Question:

How do I pass a login ID from my ASP page to my OCX? I created a public property in the OCX, but it is not getting the data when I do:

What should the code look like in Visual Basic?

Answer:

Remember that you can use ASP to generate any of the HTML that will be displayed in your browser, including any HTML, client-side script, PARAM tags, and so forth. This is a powerful and often overlooked aspect of ASP. You could pass the value from ASP to your tag simply by writing the value of an ASP variable in the place where you want the value to appear in the page. You can modify this example code to suit your specific application:

<%Dim MyVariable MyVariable = 13282%>

See also  5 Tips for Choosing the Right Medical Software for Your Practice
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