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(); }
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 } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)