Question : SIMPLE IF question for asp.net

why can't I dynamically change the <A href> according to what value is in the query string?

I want the a href to append a value or not append a value according to what is in the URL already.

this IF isn;t working.
1:
2:
3:
4:
5:
6:
7:
<% If Request.QueryString("sport") = "" Then%>
             <a class="nav" id="nav<%# Eval("sport") %>" href="<%# Request.Url %>&sport=<%# Eval("id") %>"><%# Eval("sport") %></a>
          <% ElseIf Request.QueryString("sport") = Eval("id") Then%>
             <a class="nav" id="nav<%# Eval("sport") %>" href="<%# Request.Url %>"><%# Eval("sport") %></a>
          <% Else%>
             <a class="nav" id="nav<%# Eval("sport") %>" href="<%# Request.Url %>"><%# Eval("sport") %></a>
          <% end if %>

Answer : SIMPLE IF question for asp.net

check SYSDATE or SYSTIMESTAMP.

for business hours,  I think SYSDATE would be sufficient


your policy function might be something like...  if sysdate between 8am and 5pm then ok

which, in pl/sql might be a predicate something like....

return (SYSDATE >= trunc(sysdate) + 8/24  and SYSDATE <= trunc(sysdate)+ 17/24)
Random Solutions  
 
programming4us programming4us