Click here to Skip to main content
15,884,099 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: download visual studio 2005 Pin
Christian Graus16-Apr-09 19:45
protectorChristian Graus16-Apr-09 19:45 
AnswerRe: download visual studio 2005 Pin
shashank70116-Apr-09 22:18
shashank70116-Apr-09 22:18 
QuestionVisual Foxpro Database/Table in ASP.NET Pin
Girish48116-Apr-09 17:09
Girish48116-Apr-09 17:09 
AnswerRe: Visual Foxpro Database/Table in ASP.NET Pin
Christian Graus16-Apr-09 17:17
protectorChristian Graus16-Apr-09 17:17 
GeneralRe: Visual Foxpro Database/Table in ASP.NET Pin
Girish48116-Apr-09 17:27
Girish48116-Apr-09 17:27 
QuestionAJAX Update Panel... Pin
Illegal Operation16-Apr-09 15:58
Illegal Operation16-Apr-09 15:58 
AnswerRe: AJAX Update Panel... Pin
mr_muskurahat16-Apr-09 21:50
mr_muskurahat16-Apr-09 21:50 
QuestionSys.WebForms.PageRequestManager.getInstance().add_endRequest not working Pin
goodideadave16-Apr-09 13:29
goodideadave16-Apr-09 13:29 
I have an aspx page with jscript in a separate .js file. The page has an autocomplete extender, and I am trying to debug a problem by putting an alert in my EndRequestHandler function. For some reason, it's not executing either the EndRequestHandler or the InitializeRequest functions. It executes OnPageLoad without error, as well as another jscript function hooked to a button click event further south. What am I doing wrong? Thanks for any clues for the clueless.


 function OnPageLoad()
{
    // OnPageLoad() is defined in _smfcommon.js, which is included in all pages.
    // We override it here so we can use the EndRequestHandler and InitializeRequest functions
    // in this page.

    // Add initializeRequest and endRequest
    Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(InitializeRequest);
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

    return;
}

// Called when async postback begins
function InitializeRequest(sender, args) {
    alert("You are in the InitializeRequestHandler function.");  // breakpoint here
}

// Called when async postback ends
function EndRequestHandler(sender, args)
{
    // this function is run after an Ajax partial postback occurs

   alert("You are in the EndRequestHandler function.");    // breakpoint here

   if (args.get_error() != undefined)
       alert("There was an error" + args.get_error().message);
   
    return;
}


My other signature is witty and insightful.

Questionfor project titles Pin
vvikram16-Apr-09 11:58
vvikram16-Apr-09 11:58 
AnswerRe: for project titles Pin
Yusuf16-Apr-09 12:40
Yusuf16-Apr-09 12:40 
AnswerRe: for project titles Pin
Christian Graus16-Apr-09 14:11
protectorChristian Graus16-Apr-09 14:11 
GeneralRe: for project titles Pin
MidwestLimey17-Apr-09 9:17
professionalMidwestLimey17-Apr-09 9:17 
AnswerRe: for project titles Pin
Abhijit Jana16-Apr-09 20:09
professionalAbhijit Jana16-Apr-09 20:09 
QuestionGridview refresh from popup window Pin
bitsbuilt16-Apr-09 11:47
bitsbuilt16-Apr-09 11:47 
AnswerRe: Gridview refresh from popup window Pin
Christian Graus16-Apr-09 11:53
protectorChristian Graus16-Apr-09 11:53 
Questionexcel -sql server ? Pin
haseeb_saeed16-Apr-09 11:15
haseeb_saeed16-Apr-09 11:15 
AnswerRe: excel -sql server ? Pin
Christian Graus16-Apr-09 11:54
protectorChristian Graus16-Apr-09 11:54 
GeneralRe: excel -sql server ? Pin
haseeb_saeed16-Apr-09 12:44
haseeb_saeed16-Apr-09 12:44 
GeneralRe: excel -sql server ? Pin
Christian Graus16-Apr-09 14:14
protectorChristian Graus16-Apr-09 14:14 
GeneralRe: excel -sql server ? Pin
haseeb_saeed16-Apr-09 16:21
haseeb_saeed16-Apr-09 16:21 
AnswerRe: STOP cross-posting Pin
Yusuf16-Apr-09 12:42
Yusuf16-Apr-09 12:42 
GeneralRe: STOP cross-posting Pin
haseeb_saeed16-Apr-09 16:30
haseeb_saeed16-Apr-09 16:30 
GeneralRe: STOP cross-posting Pin
Yusuf16-Apr-09 16:49
Yusuf16-Apr-09 16:49 
GeneralRe: STOP cross-posting Pin
Christian Graus16-Apr-09 16:52
protectorChristian Graus16-Apr-09 16:52 
QuestionLabel in requiredvalidatorcontrol is not showing up in page load Pin
vmang16-Apr-09 11:08
vmang16-Apr-09 11:08 

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.