Very simple and stupid question.
i have a page class
public partial class ProtectWayItem : System.Web.UI.UserControl
{
public int Count {
You have to use = instead #
<div id='<%= Count %>' >
And if you want to call with the # sign
then you need to call a DataBind() method..
protected void Page_PreRenderComplete(object sender, EventArgs e)
{
DataBind();
}
here is what each expression means
For a better understanding, please check out this link: The difference between <%= and <%# in ASP.NET
<div id='<%= Count %>' > </div>
But you must remember this section must be in FORM section.