Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Asp.net AJAX Web Serviceд·¨²îÒì

ÔÚC#ÖÐ
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Services;
using System.Collections.Generic;
using System.Collections;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[GenerateScriptType(typeof(Employee ))]
[ScriptService]
public class PeopleManagementService : System.Web.Services.WebService
{
    [WebMethod]
    [ScriptMethod(UseHttpGet = true)]
    public Employee CreateNewEmployee()
    {
        return new Employee();
    }
}
vb.net
Imports System;
Imports System.Web;
Imports System.Web.Services;
Imports System.Web.Services.Protocols;
Imports System.Web.Script.Services;
Imports System.Collections.Generic;
Imports System.Collections;
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<GenerateScriptType(GetType(Employee))> _
<ScriptService()> _
Public Class PeopleManagementService 
    Inherits System.Web.Services.WebService
   <WebMethod()> _
   <ScriptMethod(usehttpget:=True)> _
    Public Function CreateNewEmployee() As Employee
        Return New Employee()
    End Function
End Class
C#ÖеÄstatic,¶ÔÓ¦vb.net shared
ÒòΪ×Ô¼º»ù±¾ÉÏʹÓõÄvb.net£¬¿´µÄ×ÊÁÏÓÖ»ù±¾ÉÏÊÇC#µÄ£¬ºÜÉÙµÄvb.netµÄÀý×Ó£¬¾Í½«²îÒì¼Ç¼ÏÂÀ´


Ïà¹ØÎĵµ£º

asp.net¹Ø¼ü×Ö¹ýÂË

ÒòΪ¹ýÂ˹ؼü×Ö»úÖÆµ½´¦¿É¼û£¬ÓÚÊÇ´ÏÃ÷µÄÍøÓѾͻáÏëµ½¸÷ÖÖ¸÷ÑùµÄ·½·¨Í»ÆÆ£¬ÀýÈ磺
¡¡¡¡1¡¢ÖÐÎÄ»áÓ÷±Ìå×ֵķ½·¨±Ü¿ª¹Ø¼ü×ÖɨÃè
¡¡¡¡2¡¢Ôڹؼü×ÖÖмä²åÈëÎÞÒâ˼µÄÌØÊâ×Ö·û£¬ÀýÈç * & # @ µÈ£¬¶øÇÒ¸öÊý¿É±ä
¡¡¡¡3¡¢Ê¹ÓÃгÒô»ò²ð×Ö·¨±ä»»¹Ø¼ü×Ö
¡¡¡¡ÔÚʵÏÖ×Ô¼ºµÄË㷨ʱҲÓÐЩÎÊÌ⣺
¡¡¡¡4¡¢Ëæ×Åʱ¼äÍÆÒÆ£¬¹Ø¼ü×ÖÁÐ±í» ......

asp.netĸ°æÒ³Ê¹Óÿؼþʱ,¿Ø¼þÖз¾¶ÎÊÌâ

¸Õ¸ÕÔÚheadmenu¿Ø¼þÀïÃæÐ´ÁËÒ»¸öµ¼º½Ìõ,Óõ½Á˱¾µØµÄͼƬ,ÔڿؼþÖÐÏÔʾÁ¼ºÃ,¿ÉÊǷŵ½Ä¸°æÊ½Ò³ºó,·¢ÏÖµ¼º½Ìõ±³¾°Í¼Æ¬Ã»ÁË,ÓÚÊÇ×Ðϸ¼ì²éÁËÏÂͼƬµÄurl,ÎÒÓõÄÊǾø¶Ô·¾¶,ÄѵÀ·ÅÔÚÖ÷Ò³ÉϺó,·¾¶Ò²¸Ä±äÁË,ÉÏÍø²éÁËÏÂ,»¹ÕæÊÇÕâ¸öÎÊÌâ,ͼƬÔڿؼþÀïÃæ¿´²»µ½Ã»¹ØÏµ,¹Ø¼üÊÇÒªÔÚĸ°æÊ½Ò³ÄÜ¿´µ½¾ÍÐÐ,·¾¶¶¼Òª¸ù¾Ýĸ°æÒ³µÄд. ......

asp.netÒ³Ãæ¼ä´«ÖµµÄ9ÖÖ·½Ê½

1. Get(¼´Ê¹ÓÃQueryStringÏÔʽ´«µÝ)
     ·½Ê½£ºÔÚurlºóÃæ¸ú²ÎÊý¡£
     ÌØµã£º¼òµ¥¡¢·½±ã¡£
     ȱµã£º×Ö·û´®³¤¶È×Ϊ255¸ö×Ö·û£»Êý¾Ýй©ÔÚurlÖС£
     ÊÊÓÃÊý¾Ý£º¼òµ¥¡¢ÉÙÁ¿¡¢¹Ø¼üµÄÊý¾Ý¡£
     ÊÊÓ÷¶Î ......

AJAXÀ©Õ¹¿Ø¼þAccordionµÄʹÓ÷½·¨×ܽá


ÈçÉÏͼËùʾΪAccordion¿Ø¼þ£º
 ¸Ð¾õ²»´íµÄÑùʽ
  <style type="text/css">
.headerBg{cursor:hand;text-align:center;width:180px;height:21px;background-image:url(images/ajaxmenubg1.gif);FONT-SIZE: 12px;line-height:21px;}           ......

·µ»Ø°´Å¥µÄʵÏÖ·½·¨£¨asp.net ÖУ©


·µ»Ø°´Å¥µÄʵÏÖ·½·¨£¨asp.net ÖУ©
Òý×Ô:http://blog.sina.com.cn/s/blog_49df2d0b0100aqoy.html
·µ»ØÉÏÒ»Ò³µÄÕâ¸ö¶«¶«ÔÚÎÒÃÇ×öÏîÄ¿µÄʱºòÒ»°ãÊÇÓÃÓÚÌîдÍê±íµ¥ºóÈ·ÈϵÄʱºò£¬ÓжÔÔ­À´ÊäÈëµÄÊý¾Ý½øÐÐÐÞ¸ÄʱÓõ쬻òÕßÊÇÒòÎªÍøÕ¾ÎªÁË·½±ãä¯ÀÀÕß¶øÓÐÐÄÌí¼Ó µÄÒ»¸ö¶«¶«£¬Ò»°ãÕâÖÖ¹¦ÄܵÄʵÏÖÔÚASP.netÖж¼ÊÇÓÃÒ»¸öbuttonµÄ¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ