I have an if..else statement that will display whether or not the student is qualified to go for competition based from the value in database. But, my code is not working correctly.
My code is as follows:
<% If (rs_view.Fields.Item("StudentStatus").Value="OK") Then %>
<strong><font color="#3300FF" size="-1" face="Arial, Helvetica, sans-serif">
<%Response.Write("You are QUALIFIED to go for competition")%>
</font></strong>
<% Else %>
<strong><font color="#FF0000" size="-1" face="Arial, Helvetica, sans-serif">
<%Response.Write("You are NOT QUALIFIED to go for competition")%>
</font></strong>
<% End If %>
Any ideas?
- it doesn't work correctly..meaning either the student is qualified or not qualified, it will still display NOT QUALIFIED for both status.