2
276q
I'm trying to display header text in my repeater control on a
condition if a record exists in my resultset. I cannot get 'cat' to
display the "category" record from my resultset (the delimiters are
wrong in this context of a repeater control):
<% dim cat
cat = <%# Container.DataItem("category")%>
Function ShowRealty(cat)
If cat = "realty" Then
ShowRealty = "Realty Companies In Mytown"
Else if
cat = "" then
ShowRealty = "No Listings Yet"
End If
End Function %>
<HeaderTemplate>
<%=ShowRealty(cat)%>
</HeaderTemplate>
????
Ed
condition if a record exists in my resultset. I cannot get 'cat' to
display the "category" record from my resultset (the delimiters are
wrong in this context of a repeater control):
<% dim cat
cat = <%# Container.DataItem("category")%>
Function ShowRealty(cat)
If cat = "realty" Then
ShowRealty = "Realty Companies In Mytown"
Else if
cat = "" then
ShowRealty = "No Listings Yet"
End If
End Function %>
<HeaderTemplate>
<%=ShowRealty(cat)%>
</HeaderTemplate>
????
Ed