Link to home
Start Free TrialLog in
Avatar of claracruz
claracruz

asked on

Object required error...

Hello experts,

I am using  http://www.asp101.com/articles/richard/ooasp/default.asp.

I need a bit of help with an error I am getting. The bit of the article Navigating from Authors to Books describes how to how do we navigate from our book object to the authors who wrote the book.

I am applying the same principle to my PRODUCTS and its FEATURES.

So I have this on my display page;-

<%
      for each myProductFeatures in MyProductDetails.ProductFeatures.Items
%>
      <li><%=myProductFeatures.feature%></li>
<%
next
%>

But I get error :-
Microsoft VBScript runtime error '800a01a8'

Object required: ''

/bedtime/product_details.asp, line 81

<li><%=myProductFeatures.feature%></li>  <---------LINE 81



But when i try the follwoing;-
<%
      response.Write(MyProductDetails.ProductFeatures.count)
      response.End()
%>

It works fine.
How ever if I do the following;-
<%
      for each myProductFeatures in MyProductDetails.ProductFeatures.Items
%>
      <li>gg<%=MyProductDetails.ProductFeatures.count%></li>
<%
response.End()
next
%>

I get the same error.

I have no idea why its behaving like this, as I have done similar for Products to Sizes and that works fine.

Can anyone haard a guess

ASKER CERTIFIED SOLUTION
Avatar of ullfindsmit
ullfindsmit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial