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

ASP.NET 2.0 AJAXÖÐWebserviceµ÷Ó÷½·¨

ASP.NET 2.0 AjaxÖÐÄܹ»ÔÚ¿Í»§¶ËjsÖкܷ½±ãµØµ÷Ó÷þÎñÆ÷Webservice£¬ÒÔÏÂΪһЩµ÷ÓõÄʾÀý¡£±ÊÕß°²×°µÄASP.NET 2.0 AJAX
°æ±¾ÎªAJAX November CTP¡£
Èý¸öʾÀý·Ö±ðΪ£º
1 ´ø²ÎÊýµÄWS·½·¨
2 ²»´ø²ÎÊýµÄWS·½·¨
3 ²ÎÊýÀàÐÍΪDataTableµÄWS·½·¨
Ò»¡¢WebMethod
×¢ÒâÒªµã£º
1 WebMethodÀàÐèÒªÌí¼ÓÃüÃû¿Õ¼ä Microsoft.Web.Script.Services£¬´Ë¿Õ¼äÐèÒªÒýÓÃMicrosoft.Web.Preview.dll
2 ÀàÉùÃ÷¼ÓÈë±êÇ© [ScriptService]
3 ÔÚAsp.net 2.0Àï¿ÉÒÔÖ±½ÓÓÃDataTable×÷Ϊ·µ»ØÀàÐÍÁË£¬µ«ÊÇÐèÒªÔÚWeb.configÎļþÌí¼ÓÐòÁл¯×ª»»Æ÷µÄÊôÐÔ¡£DataSet¡¢DataTable¡¢DataRow¾ùÓÐת»»Æ÷
      < system.web.extensions>
¡¡¡¡< scripting>
¡¡¡¡< webServices>
¡¡¡¡< jsonSerialization>
¡¡¡¡< converters>
¡¡¡¡< add name="DataSetConverter" type="Microsoft.Web.Preview.Script.Serialization.Converters.DataSetConverter, Microsoft.Web.Preview"/>
¡¡¡¡< add name="DataRowConverter" type="Microsoft.Web.Preview.Script.Serialization.Converters.DataRowConverter, Microsoft.Web.Preview"/>
¡¡¡¡< add name="DataTableConverter" type="Microsoft.Web.Preview.Script.Serialization.Converters.DataTableConverter, Microsoft.Web.Preview"/>
¡¡¡¡< /converters>
¡¡¡¡< /jsonSerialization>
¡¡¡¡< /webServices>
¡¡¡¡< /scripting>
¡¡¡¡< /system.web.extensions>
WEB·þÎñ1£ºWS1
      using System;
¡¡¡¡using System.Web;
¡¡¡¡using System.Collections;
¡¡¡¡using System.Web.Services;
¡¡¡¡using System.Web.Services.Protocols;
¡¡¡¡using Microsoft.Web.Script.Services;
¡¡¡¡using System.Data;
¡¡¡¡/**////
¡¡¡¡/// WS1 µÄժҪ˵Ã÷
¡¡¡¡///
¡¡¡¡[WebService(Namespace = "http://tempuri.org/")]
¡¡¡¡[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
¡¡¡¡[ScriptService]
¡¡¡¡public class WS1 : System.Web.Services.WebService {
¡¡¡¡public WS1 () {
¡¡¡¡//Èç¹ûʹÓÃÉè¼ÆµÄ×é¼þ£¬ÇëÈ¡Ïû×¢ÊÍÒÔÏÂÐÐ
¡¡¡¡//InitializeComponent();
¡¡¡¡}
¡¡¡¡[WebMethod]
¡¡¡¡public string ServerTime()
¡¡¡¡{
¡¡¡¡return String.Format("now£º {0}", DateTime.Now);
¡¡¡


Ïà¹ØÎĵµ£º

ASP.NET Ò³Ãæ´«Öµ·½·¨»ã×Ü

  ÔÚ×öWEBϵͳ¿ª·¢Ê±£¬Ã¿Ã¿Óöµ½Ò³Ãæ´«ÖµµÄÎÊÌâ¶¼ÊÇÔÚʹÓÃ×î¼òµ¥µÄGET·½Ê½À´´«Öµ£¬Èç¹ûÐÅÏ¢Á¿±È½ÏÉÙ²¢ÇÒÓÖ²»Éæ¼°°²È«ÎÊÌâµÄ»°
»¹¿ÉÒÔÓ¦¸¶Ò»Ï£¬µ«ÊÇ´«µÝ´óÁ¿Êý¾Ý¡¢Ãô¸ÐÊý¾ÝµÄʱºò.....
  ÏÂÃæ¾ÍASP.NETÖÐÒ³Ãæ´«Öµ·½Ê½×ö¸ö»ã×Ü£¬ÒÔ±¸²»Ê±Ö»Ðè
1¡¢GET´«Öµ·½Ê½
    ·¢ËÍÒ³Ãæ£º
    ......

struts2+jquery+ajaxÒì²½Ìá½»

struts2°æ±¾£ºstruts-2.1.8.1
Òì³££ºjava.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/TextUtils
Ô­Òò£ºjsonplugin-0.34.jar ÅäºÏ struts2-core-2.1.8.1.jar ʹÓõÄÇé¿öϱ¨µÄÒì³££¬µ«ÒÔǰµÄÏîÄ¿ÖÐjsonplugin-0.34.jar ÅäºÏ struts2-core-2.1.6.jar ʹÓò»»á³öÏÖÕâÑùµÄÒì³£
½â¾ö·½·¨£ºÈ¥µôjsonplugin-0.34 ......

΢ÈíÆóÒµ¿â5.0ѧϰ±Ê¼Ç£¨¾Å£©ASP.NET WEBÓ¦ÓóÌÐò

ÔÚASP.NET Web´°ÌåÓ¦ÓóÌÐòÖУ¬ÍƼöµÄ·½·¨Êǽ«ÈÝÆ÷´æµ½ÓÉApplication×Öµä¶ÔÏóÌṩµÄÈ«¾Ö״̬¡£µ±ÐèÒªµÄʱºòÄã¿ÉÒÔ·ÃÎÊÈÝÆ÷£¬ÉõÖÁʹÓÃHTTPÄ£¿é×Ô¶¯Íê³É¶ÔÒ³ÃæÉϿؼþµÄ×¢Èë¡£
ͨ³£Çé¿öÏ£¬ÄãÓ¦¸ÃʹÓÃApplication×Öµä¶ÔÏóÀ´´æ´¢ÈÝÆ÷µÄµ¥¸öʵÀý¡£Äú¿ÉÄܾö¶¨´´½¨Ö÷ÒªÈÝÆ÷µÄ×ÓÈÝÆ÷£¬²¢½«ËüÃÇ´æ´¢µ½Ã¿¸öÓû§µÄSession¶ÔÏóÖУ¬ÉõÖÁ ......

ASP.NET MVC Óû§ÑéÖ¤ºÍȨÏÞÑéÖ¤


The MVC bits have finally arrived and I’ve spent a while digesting them. I’ve been waiting for the bits to be released to begin working on a side-project, so the first thing I did after downloading them last night was crank it up and start working on a new ASP.NET MVC Web Application p ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ