Published:
09 Mar 2010
|
Abstract
Page Methods is a new mechanism in ASP.NET applications where the server code can be bound to ASP.NET pages. It is an easy way to communicate asynchronously with the server using ASP.NET AJAX technologies. It is an alternate to calling the page which is reliable and carries a low risk. It is basically used to expose the web methods to the client script. |
 |
by Suresh Kumar Goudampally
Feedback
|
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days):
33470/
383
|
|
|
|
| Introduction |
Page Methods is a new mechanism in ASP.Net application where
the server code cab be bound to Asp.Net pages. It is an easy way to
communicate asynchronously with the server using Asp.Net Ajax technologies.
It’s an alternate way to call the page which is reliable and low risk. In a
nutshell, it is used to expose the web methods to the client script.
|
|
|
|
|
|
Article Feedback
User Comments
Title:
dfgdgf
Name:
dgdgd
Date:
2/9/2012 5:26:33 AM
Comment:
cvb
|
Title:
Excellent
Name:
Srinivasa Rao D
Date:
12/23/2011 1:05:20 AM
Comment:
U save my day..!
|
Title:
Invalid Method Name
Name:
Prakash
Date:
7/8/2011 4:53:41 AM
Comment:
Please change method name as GetPageMethod instead of GetStatus(). Those who are copying this code, that code wont run. check befor every one run. Thanks.
|
Title:
Good One
Name:
sachin
Date:
2/1/2011 7:43:14 AM
Comment:
Understandable for those who are beginner for PageMethods....
|
Title:
Nice Article
Name:
HPR
Date:
1/24/2011 8:41:55 PM
Comment:
Nice informative article.
|
Title:
aa
Name:
aaa
Date:
1/18/2011 5:34:27 AM
Comment:
very nice
|
Title:
why does not work in firefox and safai while javascript is enable?
Name:
AKM
Date:
11/26/2010 7:02:35 AM
Comment:
Work in IE but,why does not work in firefox and safari while javascript is enable on both browser?
|
Title:
Feedback
Name:
Atul Tiwari
Date:
11/22/2010 5:37:58 AM
Comment:
Too good....
|
Title:
A question..
Name:
Dario
Date:
11/14/2010 9:16:49 AM
Comment:
Is it possible for the page method to return a structure instead a simple string? And how to read it on client side? Thank you!
|
Title:
Not clear yet
Name:
M
Date:
8/10/2010 6:27:42 AM
Comment:
The article could be better structured. It's all a bit chaotic and confusing...
|
Title:
clear now
Name:
Babak Sekandari
Date:
4/29/2010 9:58:30 AM
Comment:
OK, I understand now. public static string GetStatus(string s1, string s2){ . . . appears later. It's better to view the whole article at once. Very good explanations by the way. Thank you very much.
|
Title:
confused
Name:
Babak Sekandari
Date:
4/28/2010 6:59:47 PM
Comment:
The page method call is: PageMethods.GetStatus(onSucceed, onError); But the code behind sample is public static string GetPageMethod()
As Woho stated, I don't understand why one is GetPageMethod() and the other is GetStatus()
|
Title:
setting control value
Name:
suresh kumar
Date:
3/26/2010 12:08:31 AM
Comment:
that would be a logical error, have you tried to debug onsucceed method and check the value before it is assigned to textbox. Can you send me the code?
|
Title:
setting control value
Name:
Maulik
Date:
3/25/2010 9:14:31 PM
Comment:
Hi,
OnSucceed event, I want to set the result value to a textbox. For that, I find the textbox and assign result to textbox's "value" property. I receive the expected value for result but textbox has an empty value..any reason?? I use onblur event of another textbox and do the same thing and at that time textbox shows result value..any idea??
|
Title:
Good
Name:
NNN
Date:
3/22/2010 3:19:51 AM
Comment:
Very good article.
|
Title:
GetStatus
Name:
Suresh Kumar
Date:
3/10/2010 4:07:24 AM
Comment:
i am referring to sample method GetStatus in the article.
|
Title:
Interesting, but a bit confusing
Name:
Woho
Date:
3/10/2010 2:33:07 AM
Comment:
You keep referring to the method GetStatus, but I guess you really mean GetPageMethod? Otherwise it doesn't make any sense... Interesting article although, but feels a bit like "ugly coding" (the concept, not your code :) ).
|
Title:
Good one
Name:
Bijith K B
Date:
3/9/2010 2:04:48 PM
Comment:
Nice article.
|
|
|
|
|
|