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

If Then statement in HTML with bind data

Status
Not open for further replies.

vpekulas

Programmer
Jan 8, 2002
154
CA
I have a repeated control that I populate from my MS SQL DB.
Now I check one of the returned values, so far I'm using this code:

Code:
<%If Container.DataItem("fldSHARE") = "1" Then %>
    <td>Shared</td>
<%else%>
    <td>Not Shared</td>
<%End IF%>

When I run the code I receive an error: BC30451: Name 'Container' is not declared.

Is there a way to check for data before it get's bind ?
I can not use the <%#Iff(....%> as I need to do more then that
and I also don't want to use DataReader instead.

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top