
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?