I am just trying to display a "Loading" progress bar on every postback.
These are the things i have tried so far.
1. Using Update panel to display the progress bar.(This works only with update panel).
2. Displaying a Fake jquery progress bar(This is not specific with the time being consumed with the actual postback caused by any control in my webpage.)
But the below is what i am trying to implement.
protected void Button1_Click(object sender, EventArgs e)
{
startProgressBarOnBeginRequest(this.Page,sender)
endProgressBarOnEndRequest(this.Page,sender)
}
public void startProgressBarOnBeginRequest(Page page,object sender)
{
}
public void endProgressBarOnEndRequest(Page page, object sender)
{
}
I want startProgressBarOnBeginRequest() and endProgressBarOnEndRequest() these 2 methods to execute whenever a postback event happens by any control..
is there anything that i need to do in global.asax? {Application_Start and Application_End events}
Thanks in advance.