G
Gabriel Lozano-Morán
I'm stuck with this one in .NET, I have done this a million of times in
classic ASP and I have to say honestly that I have no clue on how to do this
correctly in ASP.NET.
<%
.....
Set RsItem = Conn.Execute("EXEC blablabla")
Response.Write("<table>")
Do Until RsItem.EOF
activeFlag = RsItem("Active")
If (activeFlag = 2) Then
Response.Write("<tr class=dark>")
Else
If (activeFlag = 3) Then
Response.Write("<tr class=light>")
Else
Response.Write("<tr class=medium>")
End If
End If
Response.Write(" <td>" & RsItem("Name") & "</td>")
Response.Write("</tr>")
RsItem.MoveNext
Loop
....
%>
I need to know how this can be done using the datalist or repeater control.
I'm stuck on implementing the if statements.
Thanks for any help or a lead in the correct direction
Gabriel
classic ASP and I have to say honestly that I have no clue on how to do this
correctly in ASP.NET.
<%
.....
Set RsItem = Conn.Execute("EXEC blablabla")
Response.Write("<table>")
Do Until RsItem.EOF
activeFlag = RsItem("Active")
If (activeFlag = 2) Then
Response.Write("<tr class=dark>")
Else
If (activeFlag = 3) Then
Response.Write("<tr class=light>")
Else
Response.Write("<tr class=medium>")
End If
End If
Response.Write(" <td>" & RsItem("Name") & "</td>")
Response.Write("</tr>")
RsItem.MoveNext
Loop
....
%>
I need to know how this can be done using the datalist or repeater control.
I'm stuck on implementing the if statements.
Thanks for any help or a lead in the correct direction
Gabriel