Click here to Skip to main content
15,920,688 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends ,

Scenario :-

display.aspx.cs
C#
  protected void onClick_ShowData(object sender,EventArgs e)
  {
//calling the class which is defined below 
   Report RP = new Report(10,20); 
   mygrid.datasource = RP;
   mygrid.databind();
  }


=>In this page i have an percentile progress bar(progressbar1) ,which i want to update as per execution of functions call through Report.cs class which is present in another class library project.

C#
Class Report
{
  // Default constructor 
  public Report()
  {
  }
  //parameterized constructor
     public Report(int para1,int para2)
    {
     function1();
     function2();
    }
   public void function1()
   {
    //here i want to update progressbar1 to 10% which is present in display.aspx 
   //Some logical code
    //here i want to update progressbar1 to 50% which is present in display.aspx 
   }
   public void function2()
  {
    //here i want to update progressbar1 to 60% which is present in display.aspx 
  //Some logical code
  //Initialize some properties
   //here i want to update progressbar1 to 80% which is present in display.aspx 
   function3();
  }
  public void  function3()
  {
    //here i want to update progressbar1 to 90% which is present in display.aspx 
   // Some more data fetch from DB  
    //here i want to update progressbar1 to 100% which is present in display.aspx 
  }
}

Problem : So my problem is how i can synchronize between an class and an progress bar which is present in another UI page(display.aspx.cs) .

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 19-Jan-14 21:10pm
v4
Comments
OriginalGriff 20-Jan-14 3:10am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Rak_Avasthy. 20-Jan-14 5:09am    
I think this is not possible, instead i recommend using a GIF image if percentage of work done is not required

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900