We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Reach MasterPage Syncfusion ProgressBar element from Content Page

I have a ASP.NET Web forms page and I've started tu use the Syncfusion ProgressBar control.
How can I reach the MasterPage ProgressBar control from Content Page?
In the MasterPage:
ContentPage .cs file:
I reach the MasterPage controls this way:
Label example_label= (Label)Master.FindControl("Example_Show_Label");
But for the Syncfusion element it's not working.

3 Replies

KR Keerthana Rajendran Syncfusion Team June 19, 2017 09:18 AM UTC

Hi Imre, 
Thank you for contacting Syncfusion support 
We can reach the ProgressBar control from content page using Master.FindControl as per the below code.  
Aspx page: 
<asp:Label ID="Results" runat="server" Text="Display the text"></asp:Label> 
                <ej:ProgressBar ID="ProgressBar1" runat="server" Height="20px" Value="45"></ej:ProgressBar> 
Aspx.cs page: 
protected void btn1_Click(object sender, EventArgs e) 
            Label ResultsLabel = (Label)Master.FindControl("results"); 
            Syncfusion.JavaScript.Web.ProgressBar progress =(Syncfusion.JavaScript.Web.ProgressBar)Master.FindControl("ProgressBar1"); 
            ResultsLabel.Text = string.Format("The value is {0}!", progress.Value); 
We have prepared sample for your reference. Please refer to the below given link 

IR Imre Revesz June 19, 2017 09:24 AM UTC

Dear Keerthana,

That solved my problem. ;-)


KR Keerthana Rajendran Syncfusion Team June 20, 2017 03:51 AM UTC

Hi Imre,  
Thanks for your update. We are glad to hear that your issue has been resolved, please get back to us if you require further assistance on this. We will be happy to assist you  
Keerthana R. 

Live Chat Icon For mobile
Up arrow icon