I am learning .NET for a college project, having an already solid knowledge of PHP. I want to find out how to print out html content in .NET like I would do in PHP.
PHP example:
<?php
$array = array("foo", "bar", "hello", "world");
for($i=0; $i<count($array); $i++) {
echo "<p id=\"$i\">This is paragraph $i.</p>";
}
?>
This is a simple example of what I'm trying to achieve and understand. How would I do the above in ASP.NET?
Thanks for your help.