Conditional IF statement
I have an .asp page, which displays an article from the database based on a queryString value, (/news/articleDetails.asp?articleID=1). On the left hand side of the page is a menu, which lists all the articles in the database. I want to italicize (<I></I>) the current article to let the user know which article they are currently reading.
<%articleRequested = Request.QueryString("articleID")%>
<%If articleID = articleRequested Then%>
<i><span class="regText"><%=articleDate%></span> - <a href="/news/articleDetails.asp?articleID=<%=articleID%>">
<%=articleTitle%></a></i><br><br>
<%Else%>
<span class="regText"><%=articleDate%></span> - <a href="/news/articleDetails.asp?articleID=<%=articleID%>">
<%=articleTitle%></a><br><br>
<%End IF%>
Everything works fine with:
<%If articleID = "1" Then%>
Can you do this with an IF statement?
Thanks.
|