Click here to Skip to main content
15,921,841 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: what is the error in this code ? Pin
Guffa18-Jan-09 1:49
Guffa18-Jan-09 1:49 
The method call is asynchronous. You need to specify a callback function in the call:
PageMethods.GetName(callback);

In the callback function you get the result:
function callback(result, context, method) {
   alert(result);
}

You can also specify another callback function for a failed AJAX call. The method parameter in the callback is the name of the server function called, so you can use the same callback for several page methods.

(I never used AJAX page methods before, so I learned something new this day too. Smile | :) )

Despite everything, the person most likely to be fooling you next is yourself.

QuestionHow Events can make fire for dynamically generated controls Pin
meeram39517-Jan-09 17:46
meeram39517-Jan-09 17:46 
AnswerRe: How Events can make fire for dynamically generated controls Pin
Christian Graus18-Jan-09 2:02
protectorChristian Graus18-Jan-09 2:02 
QuestionUpdate Panel and WebPart Pin
Not Active17-Jan-09 15:09
mentorNot Active17-Jan-09 15:09 
AnswerRe: Update Panel and WebPart Pin
Rutvik Dave17-Jan-09 19:41
professionalRutvik Dave17-Jan-09 19:41 
GeneralRe: Update Panel and WebPart Pin
Not Active17-Jan-09 20:14
mentorNot Active17-Jan-09 20:14 
GeneralRe: Update Panel and WebPart Pin
Rutvik Dave18-Jan-09 8:23
professionalRutvik Dave18-Jan-09 8:23 
QuestionVery Complex SQL/ASP/Sharepoint issue with Sharepoint trying to get users from a custom "user-provider-Database" Pin
3ukman17-Jan-09 14:47
3ukman17-Jan-09 14:47 
QuestionFilepaths for Windows Media Player in Visual Basic ASP.NET Pin
AndyASPVB17-Jan-09 7:18
AndyASPVB17-Jan-09 7:18 
AnswerRe: Filepaths for Windows Media Player in Visual Basic ASP.NET Pin
Christian Graus17-Jan-09 11:04
protectorChristian Graus17-Jan-09 11:04 
GeneralRe: Filepaths for Windows Media Player in Visual Basic ASP.NET Pin
AndyASPVB18-Jan-09 0:45
AndyASPVB18-Jan-09 0:45 
GeneralRe: Filepaths for Windows Media Player in Visual Basic ASP.NET Pin
Christian Graus18-Jan-09 2:10
protectorChristian Graus18-Jan-09 2:10 
GeneralRe: Filepaths for Windows Media Player in Visual Basic ASP.NET Pin
AndyASPVB18-Jan-09 4:10
AndyASPVB18-Jan-09 4:10 
GeneralRe: Filepaths for Windows Media Player in Visual Basic ASP.NET Pin
Christian Graus18-Jan-09 12:00
protectorChristian Graus18-Jan-09 12:00 
GeneralRe: Filepaths for Windows Media Player in Visual Basic ASP.NET Pin
AndyASPVB18-Jan-09 12:18
AndyASPVB18-Jan-09 12:18 
GeneralRe: Filepaths for Windows Media Player in Visual Basic ASP.NET Pin
Christian Graus18-Jan-09 12:25
protectorChristian Graus18-Jan-09 12:25 
GeneralRe: Filepaths for Windows Media Player in Visual Basic ASP.NET Pin
AndyASPVB19-Jan-09 10:30
AndyASPVB19-Jan-09 10:30 
Questionconnection string Pin
ratnakar_ravi17-Jan-09 4:21
ratnakar_ravi17-Jan-09 4:21 
AnswerRe: connection string Pin
Colin Angus Mackay17-Jan-09 5:10
Colin Angus Mackay17-Jan-09 5:10 
AnswerRe: connection string Pin
TylerBrinks17-Jan-09 7:18
TylerBrinks17-Jan-09 7:18 
GeneralRe: connection string Pin
Christian Graus17-Jan-09 11:05
protectorChristian Graus17-Jan-09 11:05 
GeneralRe: connection string Pin
Colin Angus Mackay17-Jan-09 11:49
Colin Angus Mackay17-Jan-09 11:49 
GeneralRe: connection string Pin
Christian Graus17-Jan-09 14:03
protectorChristian Graus17-Jan-09 14:03 
GeneralRe: connection string Pin
TylerBrinks17-Jan-09 17:11
TylerBrinks17-Jan-09 17:11 
Questioncall function Pin
amin saffari17-Jan-09 3:19
amin saffari17-Jan-09 3:19 

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.