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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type mismatch: 'HTMLEncode'

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When I run this:

<td><%=Server.HTMLEncode(rsMbrs.Fields(&quot;Price&quot;).Value)%></td>

I get the error:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'HTMLEncode'
/webapp1/ch04/readclearpath.asp, line 50

What is causing this error?

Thanks,
ik
 
Is rsMbrs.Fields(&quot;Price&quot;).Value returning a null value?
If so, try using Page.HTMLEncode instead of Server.HTMLEncode

///edox
..
 
Is rsMbrs.Fields(&quot;Price&quot;).Value returning a null value?
If so, try using Page.HTMLEncode instead of Server.HTMLEncode

///edox
..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top