T
tony collier
i have just seen this in some code:
<option
<%
if (Request.QueryString["Category"] == values)
{
Response.Write("selected");
}
%>
<%=values%>
</option>
where values is an array of string values.
I was just wondering how come <%=values%> is allowed?
shouldn't this be <% Response.Write(values) %> ?
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?
<option
<%
if (Request.QueryString["Category"] == values)
{
Response.Write("selected");
}
%>
<%=values%>
</option>
where values is an array of string values.
I was just wondering how come <%=values%> is allowed?
shouldn't this be <% Response.Write(values) %> ?
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?