Hi
I'm not sure if this post should be in here or in the VB forum, so apologies if this is wrong.
Basically, I want to know how to use a control created in VB on a web page. I've got as far as getting the control onto the page, but I don't know how to talk to the control once its there. Here is the code I'm using:
This gets me the following error on the line with rtb.getSelectedText
Microsoft VBScript runtime error '800a01a8'
Object required: ''
If I run the control within vb it works fine. How do I talk to the control from ASP?
I'm not sure if this post should be in here or in the VB forum, so apologies if this is wrong.
Basically, I want to know how to use a control created in VB on a web page. I've got as far as getting the control onto the page, but I don't know how to talk to the control once its there. Here is the code I'm using:
Code:
<form name="frm">
<OBJECT SCOPE="Session" ID="rtb" name="rtb" classid="clsid:95A18709-BE8F-11D6-817D-0020ED174450">
</OBJECT>
<input type="button" value="Get Selected Text" name="cmdSelText" onclick="alert('<%= rtb.GetSelectedText %>')">
</form>
This gets me the following error on the line with rtb.getSelectedText
Microsoft VBScript runtime error '800a01a8'
Object required: ''
If I run the control within vb it works fine. How do I talk to the control from ASP?