Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX and ASP

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

im trying to get passed a value from a HTML(better ASP) Page
into a ActiveX Control. I have build one with needs a entry
from the user by a form field in HTML. Then i would use this
value in my Control and salute the user by the name.

How can i realize this?

Thanks.
 
I believe you need the ASP forum. John Fill
1c.bmp


ivfmd@mail.md
 
In short, add a method to your activex control (I'm assuming VC++ and not sucky VB) that takes the param you want to pass in. Then in your html page use the OBJECT tag and assign the activex control an id with the ID attribute(for example, ID="objActiveX"). Now somewhere in your VBScript or ASP just say:

objActiveX.TheMethodYouJustAdded(parameters)

That should do it.

bitwise
 
Case you are using a VBasic activex component, you can obtain the value of any object inside a html form:
HTML (ASP)
<form name=form1>
<input type=text name=user_name value=&quot;&quot;>
</form>

After submit this form, you can receive this value inside the activex component to a variable (example:the_user):

Private Sub Command_GetValue_Click()
the_user=Parent.form1.user_name.Value
End Sub

I Hope this can help you,

Sergio.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top