How to find control in RadDataPager

2 posts, 0 answers
  1. shemein
    shemein avatar
    28 posts
    Member since:
    Mar 2014

    Posted 23 May 2014 Link to this post

    I am trying to use RadDataPaged as a seprated control  in the role of the navigation of my web pages so I just have the RadDataPager and its fields and a label that in Paer template. I need to find that table text but the problem is when I am using Label lbl=RadDatapager1.FindControl("Label1") as Label in Page_load  codes it returns null. I don't  know what should I do? Please help...
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 May 2014 in reply to shemein Link to this post

    Hi zahra,

    Please try the below C# code snippet to access the Label inside the PagerTemplate of RadDataPager.

    Label labelControl = (Label)RadDataPager1.Controls[0].FindControl("Label1");


Back to Top