So I know coldfusion, so I'll post it like this...

Whats the best ASP.net example of this coldfusion code?

<cfset mylist="red,blue,yellow,green">

<cfloop list="#mylist#" index="i">
   <cfoutput>#i#</cfoutput> <BR>
</cfloop>

I can't find this example anywhere on the web. Thanks guys!

Hello, Justin.
I don't know the ColdFusion, so I'll try to guess what you want :)
The closest solution I came up with is:

<% string[] list = { "red", "blue", "yellow", "green" };
   for (int i = 0; i < list.Length; i++) {
       Response.Write(list[i] + "<br />");
}%>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.