Quote:
quote:Originally posted by imjigu2001
but you can not concate like you have given so remove s and try to do at runtime.
|
Yes you can. The syntax is a bit off. First I want to be up front that I agree with imjigu2001, this is something you should handle in your code behind if, for nothing else, to maintain seperation between your UI and program logic.
If you want to mix script with design however, something like this would work:
<%
= "<h2>January - </h2>" & category%>
Notice the addition of the equals sign. My only other concern here is that, I assume, category is a variable that is declared in your code behind which means you have it declared (probably) as public, correct? There is nothing wrong with this but I think you would be better off using imjigu's code.
-Doug
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========