jgd1234567
Programmer
Hi, maybe i'm just being picky/lazy but i'm trying to set the PageSize of my DataPager (which sits within the LayoutTemplate of my ListView). I tried doing:
PageSize="<%# Globals.Settings.Content.News.MaximumRows %>"
and i received no errors but it simply ignored it. I thought the databinding syntax should work fine because i am using it from within a template. If i do:
((DataPager)lvwNews.FindControl("pager")).PageSize = Globals.Settings.Content.News.MaximumRows
from within the Page_Load of my page it works fine but i still don't understand why my first approach did not work. Appreciate if you could help. Thanks
PageSize="<%# Globals.Settings.Content.News.MaximumRows %>"
and i received no errors but it simply ignored it. I thought the databinding syntax should work fine because i am using it from within a template. If i do:
((DataPager)lvwNews.FindControl("pager")).PageSize = Globals.Settings.Content.News.MaximumRows
from within the Page_Load of my page it works fine but i still don't understand why my first approach did not work. Appreciate if you could help. Thanks