Use IEnumerable variables in asp.net razor foreach loops
<p>I'm declaring my variable with this code </p>

<pre><code>IEnumerable&lt;object&gt; Update_Select_Result= null;
</code></pre>

<p>and assigning with this </p>

<pre><code>Update_Select_Result = DB.Query(CMD_Select, Request["UpdateID"]);
</code></pre>

<p>but how can I use this variable in foreach? </p>
