Appframe Knowledge Base


1 hits
1

Execute a stored procedure and output html for each row in razor

@{
	var vProcedureCall = ProcedureCall("astp_Some_Procedure");
	var vDataSet = vProcedureCall.Execute();
}

<ul>
@foreach (var vRow in vDataSet[0])
{
	<li>@HtmlEncode(vRow["Column1"])</li>
}
</ul>

razor web · Perma link post comment Posted by: Peter Øren (15-jan-2013)

Arild Røksund :
Should vCategories be vDataSet ? (17-feb-2015)
Peter Øren :
Yes (23-feb-2015)