i have just seen this in some code:
<option
<%
if (Request.QueryString["Category"] == values[i])
{
Response.Write("selected");
}
%>
<%=values[i]%>
</option>
where values[i] is an array of string values.
I was just wondering how come <%=values[i]%> is allowed?
shouldn't this be <% Response.Write(values[i]) %> ?
I thought the bits between <% %> tag was supposed to be snippets of
whole code i.e. one can't write a statement that begins with an equals
sign in c# or vb?