Click here to Skip to main content
15,905,963 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionConfused by the behaviour of static variable Pin
KittyKit27-Jan-10 9:53
KittyKit27-Jan-10 9:53 
AnswerRe: Confused by the behaviour of static variable Pin
Dinesh Mani27-Jan-10 17:51
Dinesh Mani27-Jan-10 17:51 
QuestionASP.NET CAC (SmartCard) Certificate Dialog Selection Pin
AngeloBestetti27-Jan-10 8:44
AngeloBestetti27-Jan-10 8:44 
AnswerRe: ASP.NET CAC (SmartCard) Certificate Dialog Selection Pin
PFucci17-Sep-11 15:28
PFucci17-Sep-11 15:28 
QuestionProblems while extending gridview [modified] Pin
dan!sh 27-Jan-10 4:19
professional dan!sh 27-Jan-10 4:19 
QuestionProgress bar , Help Needed Pin
Hema Bairavan27-Jan-10 3:28
Hema Bairavan27-Jan-10 3:28 
AnswerRe: Progress bar , Help Needed Pin
Not Active27-Jan-10 3:41
mentorNot Active27-Jan-10 3:41 
AnswerRe: Progress bar , Help Needed [modified] Pin
Prosanta Kundu online27-Jan-10 17:08
Prosanta Kundu online27-Jan-10 17:08 
Hi
"Sys.WebForms.PageRequestManager" class manages partial-page updates of server UpdatePanel controls in the browser. There are two events which handles before an request made and after completing the request in the browser. These are

1. Sys.WebForms.PageRequestManager beginRequest Event : Raised before processing of an asynchronous postback starts and the postback request is sent to the server.

2. Sys.WebForms.PageRequestManager endRequest Event: Raised after an asynchronous postback is finished and control has been returned to the browser.

You can simply use this events to show and hide your progress bar. See code below

<script type="text/javascript" language="javascript">
                        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
                        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function BeginRequestHandler(sender, args)
{
    var elem = args.get_postBackElement();
    ActivateAlertDiv('visible', 'AlertDiv', elem.value + ' processing...');
}
function EndRequestHandler(sender, args)
{
   ActivateAlertDiv('hidden', 'AlertDiv', '');
}
function ActivateAlertDiv(visstring, elem, msg)
{
   var adiv = $get(elem);
   adiv.style.visibility = visstring;
   adiv.innerHTML = msg;                               
}
</script>


Cheers
Prosanta Kundu

modified on Wednesday, January 27, 2010 11:18 PM

GeneralRe: Progress bar , Help Needed Pin
Hema Bairavan27-Jan-10 17:46
Hema Bairavan27-Jan-10 17:46 
Questiondatalist events not firing Pin
praveenkumar_vittaboina27-Jan-10 3:10
praveenkumar_vittaboina27-Jan-10 3:10 
QuestionProgramatically creating dataset Pin
vineesh v27-Jan-10 1:36
vineesh v27-Jan-10 1:36 
AnswerRe: Programatically creating dataset Pin
Not Active27-Jan-10 2:01
mentorNot Active27-Jan-10 2:01 
Questiondropdown Pin
arkiboys27-Jan-10 0:27
arkiboys27-Jan-10 0:27 
GeneralRe: dropdown Pin
J a a n s27-Jan-10 1:07
professionalJ a a n s27-Jan-10 1:07 
GeneralRe: dropdown Pin
Shivendra Pandey27-Jan-10 1:08
Shivendra Pandey27-Jan-10 1:08 
GeneralRe: dropdown Pin
Not Active27-Jan-10 2:03
mentorNot Active27-Jan-10 2:03 
GeneralRe: dropdown Pin
arkiboys27-Jan-10 10:01
arkiboys27-Jan-10 10:01 
AnswerRe: dropdown Pin
DJ Matthews27-Jan-10 10:20
DJ Matthews27-Jan-10 10:20 
GeneralRe: dropdown Pin
arkiboys27-Jan-10 21:46
arkiboys27-Jan-10 21:46 
Questiondocument.selection - not working in firefox Pin
sekannak27-Jan-10 0:21
sekannak27-Jan-10 0:21 
AnswerRe: document.selection - not working in firefox Pin
Prosanta Kundu online27-Jan-10 17:15
Prosanta Kundu online27-Jan-10 17:15 
GeneralRe: document.selection - not working in firefox Pin
sekannak27-Jan-10 17:56
sekannak27-Jan-10 17:56 
GeneralRe: document.selection - not working in firefox Pin
Prosanta Kundu online27-Jan-10 18:11
Prosanta Kundu online27-Jan-10 18:11 
GeneralRe: document.selection - not working in firefox Pin
sekannak27-Jan-10 18:52
sekannak27-Jan-10 18:52 
GeneralRe: document.selection - not working in firefox [modified] Pin
Prosanta Kundu online27-Jan-10 22:50
Prosanta Kundu online27-Jan-10 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.