Hello all,
I want create for paging a usercontrol.
How can I access properties in usercontrol.ascx from usercontrol.ascx.cs?
Property in usercontrol.ascx.cs:
/// <summary>
/// gets actual page index
/// </summary>
public int PageIndex
{
get
{
return _pageIndex;
}
set
{
_pageIndex = value;
}
}
usercontrol.ascx:
<%= Html.RouteLink("<", new { page = (Model.PageIndex - 1) }, new { title = "previous page"})%>
How to access property? i have a model.PageIndex, but it doesnt works at all.
Thanks and tae care, Ragims