Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
645
How to access Label inside FooterTemplate?
posted

Hi,

How can I access label and set the value of the label which is placed inside footertemplate dynamically in server side code?

 

<FooterTemplate>

<asp:Label Text="" runat="server" ID="lblTotal" CssClass=""/>

<asp:Label Text="" runat="server" ID="lblblank"/>

</FooterTemplate>

c# code

PAGrid.DataSource = ds;

PAGrid.DataBind();

((

 

Label)PAGrid.Columns[OracleDBSchema.Tables.PerfAlertsGrid.NonGroup

 

 

._totalActiveIR].Footer.FindControl("lblTotal")).Text = "Dynamic".

But the code in c# is returning null.(It can not find the control.

Is there in sample code where someone have impltemented the same stuff?

Please help me out.

Thanks,

Sanjay

Parents Reply Children