Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Feb 8, 2000

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
%>

">
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date