Very simple and stupid question.
i have a page class
public partial class ProtectWayItem : System.Web.UI.UserControl
{
public int Count { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
Count = 10;
}
}
and how i can set div id equal Count.
I mean something like:
<div id='<%# Count %>' > </div>
See Question&Answers more detail:os