When we are developing a website.Sometimes we need to refresh an information immediately.But the information we need have to be get from web server.We can use WebService Behavior to solve this problem.
1.download webservice.htc file.
2.Create WebService File(*.asmx) in VS.NET and Write a required Function in (*.asmx.cs/*.asmx.vb) .
3.Create a .aspx file and then add this code <DIV id="myservice" style="BEHAVIOR: url(webservice.htc)"></DIV> to html document.
For more information about Web Service,please click this web page : http://msdn.microsoft.com/en-us/library/ms531033(VS.85).aspx and http://www.codeproject.com/KB/XML/WebServiceASPNET.aspx