You can use ASP.NET PageMethods,
http://aspalliance.com/1922[
^]
Essentailly, and simplistically, PageMethods creates an in page WebService and may not be supported in all environments.
AJAX is the preferred method for accomplishing this and using a framework like JQuery this becomes easy to do.