我将这些隐蔽的输入小组:
foreach (Object obj in Objects)
{
HiddenField hf = new HiddenField();
hf.Value = "";
hf.ID = "categoria" + obj.ID;
panelCategorieGuida.Controls.Add(hf);
}
但是,在每一个隐蔽的领域,我需要补充这一法典:
<div class="option-box"><a href="javascript:void(0);" class="option-box-item"> </a>
<span class="option-box-testo">Hello</span>
<!-- HERE I NEED TO PUT THE HIDDEN FIELD i, so think to this whole option-box item into a cycle -->
</div>
我愿避免在专题上写<代码>Literal,并将其添加到小组。
你可以向我建议什么?