assign a the text in a text box in an ASP to a VB variable 
Author Message
 assign a the text in a text box in an ASP to a VB variable

I am trying to assign a the text in a text box in an ASP
to a VB variable.  I have deployed the appropriate dlls,
but I get this error when I try to browse the page.
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/ads1.asp, line 70

The code around line 70 is as follows:
<%
Dim mobjAds
Set mobjAds=Server.CreateObject("prjSchornBO.cAds")
%>
<p><font face="Arial" size="2"><font
color="#808080">Street Address</font><br>
<input name="txtClientAddress1"><br>
<%mobjAds.ClientAddress1 = txtClientAddress1.text%>

Can anyone tell me what I am doing wrong?



Thu, 18 Dec 2003 00:07:25 GMT  
 assign a the text in a text box in an ASP to a VB variable
<%
Dim mobjAds
Set mobjAds=Server.CreateObject("prjSchornBO.cAds")
%>
<p><font face="Arial" size="2"><font
color="#808080">Street Address</font><br>
<input name="txtClientAddress1"
    value=<%=Server.HTMLEncode(mobjAds.ClientAddress1)%>><br>

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--


Quote:
> I am trying to assign a the text in a text box in an ASP
> to a VB variable.  I have deployed the appropriate dlls,
> but I get this error when I try to browse the page.
> Error Type:
> Microsoft VBScript runtime (0x800A01A8)
> Object required: ''
> /ads1.asp, line 70

> The code around line 70 is as follows:
> <%
> Dim mobjAds
> Set mobjAds=Server.CreateObject("prjSchornBO.cAds")
> %>
> <p><font face="Arial" size="2"><font
> color="#808080">Street Address</font><br>
> <input name="txtClientAddress1"><br>
> <%mobjAds.ClientAddress1 = txtClientAddress1.text%>

> Can anyone tell me what I am doing wrong?



Thu, 18 Dec 2003 00:58:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. passing variables from a text box to a document.write text box

2. Text box text on new page text box

3. Assigning Multi line text to a multiline text box

4. text box to vb script as variable

5. text entered into Text box increments a variable

6. How do you use text box text as a variable in SQL!!Help

7. Display Text from variable in text box

8. using VB text boxes data but not text boxes in word 2000

9. Passing Data from VB App Text Box to a Web Page Text Box

10. Linking VB text box to powerpoint text box

11. creating a text box errors message for empty text box

12. Assigning text value to check box

 

 
Powered by phpBB® Forum Software