Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Why do ASP.NET AJAX page methods have to be static?
desmond54
follow
1
5-5-2008 4:19 AM
202 views
tags:
.net
,
asp.net
1 Comment
|
Add a Comment
5-5-2008
8:32 AM
alanocu
That seems contradictory to the beauty of AJAX. I didn't think it was static, but maybe I'm not understanding the entire issue.
Login
to Comment. Not a member yet?
Sign up
Related Clips
Guaranteed Targeted Web Site Traffic
ASP.NET file manager
I click, therefore I am: Toward outsourcin...
Why Professor Johnny Can't Read: Understan...
An Anthropological Introduction to YouTube
The History of the internet and Net Neutra...
'Shake-up' for internet proposed
More clips from
desmond54
TuneUp Utilities 2008
Evernote
Revo Uninstaller
Today's Top Clips
Proven: Gorillas have human emotions
A New State Of Mind
Minding Mistakes: How the Brain Monitors Errors and Learns from Goofs
The Male Brain, Explained
Does Bush Believe McCain Was Tortured?
Eight of the Most Scenically Breathtaking Natural Springs in the World
World’s Most Spectacular Skylines
Drunk Builders & Mad Architects
Exuberance of light - amazing
What's Obama hiding now?
visit the
Top Clips page
View the Top Clips from
May 5, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/511c1be3-c221-4cda-9912-3dfbdc4b881b/04B32F0F-E897-442E-8094-6817411272D9/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://encosia.com/2008/04/16/why-do-aspnet-ajax-page-methods-have-to-be-static/" href="http://encosia.com/2008/04/16/why-do-aspnet-ajax-page-methods-have-to-be-static/" style="font-size: 11px;">encosia.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://encosia.com/2008/04/16/why-do-aspnet-ajax-page-methods-have-to-be-static/"><UL> <li style="margin-left:16px;padding-left: 0px;">Understanding what the Page class is, and why we have it.</LI> <li style="margin-left:16px;padding-left: 0px;">One specific thing that the Page class does for us.</LI> <li style="margin-left:16px;padding-left: 0px;">How this is accomplished, behind the scenes.</LI> <li style="margin-left:16px;padding-left: 0px;">What the static keyword entails, when used with a method.</LI> <li style="margin-left:16px;padding-left: 0px;">Finally, why page methods must be static.</LI> </UL></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://encosia.com/2008/04/16/why-do-aspnet-ajax-page-methods-have-to-be-static/"><P>The Page brings a lot to the table. However, to answer the question of why page methods must be static, we need to focus on <STRONG>persistence</STRONG>. </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://encosia.com/2008/04/16/why-do-aspnet-ajax-page-methods-have-to-be-static/"><div align="center"><img src="http://content6.clipmarks.com/blog_cache/encosia.com/img/62EEED83-8564-45AF-9308-985A0F283D2D" alt="" /></div></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://encosia.com/2008/04/16/why-do-aspnet-ajax-page-methods-have-to-be-static/"><P>A static method is simply one that is disassociated from any instance of its containing class. The more common alternative is an instance method, which is a method whose result is dependent on the state of a particular instance of the class it belongs to.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://encosia.com/2008/04/16/why-do-aspnet-ajax-page-methods-have-to-be-static/"><P>Page methods are roughly equivalent to shorthand for standalone web services. In fact, the ScriptManager even calls them exactly as it would a regular web service.</P></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/04B32F0F-E897-442E-8094-6817411272D9/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK