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

VC6.0µ÷ÓÃASP.NET WebServiceʾÀý

¿ª·¢Æ½Ì¨£º
WinXP SP3+IIS5.1+IE7+Visual Studio 2005+Visual Studio 6.0+ MS SOAP Toolkit 3.0
 
Ò»£®´´½¨ASP.NET WebService
Visual Studio 2005àÎļþàн¨àÍøÕ¾àASP.NET Web·þÎñÏîÄ¿WebServiceDemo¡£
ÒÔÏÂΪService.cs´úÂëÇåµ¥£º
// WebService.cs
using System;
using System.Web;
using System.ComponentModel;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://Fantasy/WebServiceDemo/")]
[System.Web.Services.Protocols.SoapRpcService]
public class Service : System.Web.Services.WebService
{
public Service()
{
//Èç¹ûʹÓÃÉè¼ÆµÄ×é¼þ£¬ÇëÈ¡Ïû×¢ÊÍÒÔÏÂÐÐ
//InitializeComponent();
}
[WebMethod]
public int AddNumbers(int NumberOne,int NumberTwo)
{
return NumberOne + NumberTwo;
}
}
Éú³ÉàÉú³ÉÍøվ෢²¼ÍøÕ¾¡£
 
¶þ£®ÎªWebServiceDemo´´½¨ÐéÄâĿ¼WebServiceDemo
¿ªÊ¼àÉèÖÃà¿ØÖÆÃæ°åà¹ÜÀí¹¤¾ßàInternetÐÅÏ¢·þÎñàĬÈÏÍøÕ¾àÓÒ»÷н¨àÐéÄâĿ¼WebServiceDemoÖ¸ÏòProjects\WebServiceDemo\PrecompiledWeb\WebServiceDemo.
 
Èý£®ÔÚWebä¯ÀÀÆ÷ÖÐÊäÈëhttp://localhost/WebServiceDemo/Service.asmx
³öÏÖÒÔÏ´íÎó£º
ÎÞ·¨ÏÔʾ XML Ò³¡£
ʹÓà XSL Ñùʽ±íÎÞ·¨²é¿´ XML ÊäÈë¡£Çë¸üÕý´íÎóÈ»ºóµ¥»÷ ˢа´Å¥£¬»òÒÔºóÖØÊÔ¡£
Ãû³ÆÒÔÎÞЧ×Ö·û¿ªÍ·¡£´¦Àí×ÊÔ´ 'http://localhost/WebServiceDemo/Service.asmx' ʱ³ö´í¡£µÚ 1 ÐУ¬Î»ÖÃ: 2
<%@ WebService Class="Service" %>
-^
½â¾ö·½°¸£ºhttp://blog.csdn.net/changyuming/archive/2008/09/24/2971400.aspx
ÔËÐÐC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe –i
ÔÚcmd´°¿ÚÖн«ÏÔʾ£º
¿ªÊ¼°²×°ASP.NET <2.0.50727>¡£
…………
 
ÈôҪʹ£¨¾ÖÓòÍø£©ÍâÍø·ÃÎÊWebServiceDemo/Service.asmx£¬ÔòÐèҪΪWindows·À»ðǽÌí¼Ó80¶Ë¿ÚµÄÀýÍâTCP80¡£ÔÚ¾ÖÓòÍøÄÚÆäËû»úÆ÷µÄWebä¯ÀÀÆ÷ÖÐÊäÈ룺http://192.168.89.125/WebServiceDemo/Service.asmxÔò¿É·ÃÎʱ¾»úµÄService.asmx¡£
Èô³öÏÖ“´Ë Web ·þÎñ²»·ûºÏ WS-I Basic Profile v1.1¡£”´íÎó£¬ÔòÔÚWeb.ConfigÎļþÖÐ


Ïà¹ØÎĵµ£º

ASP.NET ÑÝÁ·£ºÊ¹Óÿͻ§¶Ë½Å±¾È«Çò»¯ÈÕÆÚ


      ÔÚ±¾ÑÝÁ·ÖУ¬Äú½«Ê¹Óà ECMAScript (JavaScript) ÒÔÈ«Çò»¯¸ñʽÏÔʾÈÕ¡¢ÔºÍÆäËûÓëÈÕÆÚÏà¹ØµÄÖµ¡£ASP.NET ÖÐµÄ AJAX ¹¦ÄÜ»ùÓÚ ScriptManager ¿Ø¼þÖеÄÉèÖÃÌṩ¿Í»§¶ËÈ«Çò»¯Ö§³Ö¡£½«ÕâЩȫÇò»¯ÉèÖÃÓ¦ÓÃÓÚ Web Ó¦ÓóÌÐòºó£¬¿ÉÒÔʹÓÿͻ§¶Ë½Å±¾»ùÓÚÇøÓòÐÔÖµÉèÖà JavaScript Date »ò Number ¶ÔÏ ......

ASP.NETÒ³Ã滺´æµÄ¼¸µãÌå»á

ASP.NETÒ³Ã滺´æµÄ¼¸µãÌå»á
¾¡¹Ü±¾ÎĵÄ×÷ÕßдµÄºÜ¼òµ¥£¬µ«ÊÇÏàÐÅͨ¹ýÕâЩÎÄ×Ö£¬»¹ÊÇÄܶԴó¼ÒÁ˽âASP.NETÒ³Ã滺´æÓкܴóµÄ°ïÖú¡£
Ç°¼¸ÌìÓöµ½¸öÎÊÌ⣬°Ù˼²»µÃÆä½â¡£ºóÀ´²éÔÄÁËһЩ×ÊÁÏÐÄÀï²ÅÓÐÁ˵ã˼·¡£°Ñ×Ô¼ºÓöµ½µÄÎÊÌâ¼Ç¼ÏÂÀ´Ï£ÍûÄܸøÆäËûµÄÔ°ÓÑһЩ°ïÖú°É¡£
ÊÂÇéÊÇÕâÑùµÄ¡£ÎÒµÄÒ»¸öASP.NETÒ³ÃæÓÃwindow.openµ¼º½ºó ......

ASP.NETÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("£¼script£¾window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')£¼/script£¾")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes.Add("o ......

asp.net »ñÈ¡±¾ÖÜ¡¢±¾ÔµÚÒ»ÌìºÍ×îºóÒ»Ìì

 DateTime dt = DateTime.Now;
 //±¾ÔµÚÒ»Ììʱ¼ä   
DateTime dt_First = dt.AddDays(-(dt.Day) + 1);
 Label1.Text = dt_First.ToString("yyyy-MM-dd");
//½«±¾ÔÂÔÂÊý+1 
DateTime dt2 = dt.AddMonths(1);
//±¾ÔÂ×îºóÒ»Ììʱ¼ä  
DateTime dt_Last = dt2.AddDays( ......

ASP.NET µ¥µãµÇ¼

ÒëÎÄÔ­ÎĵØÖ·
http://www.cnblogs.com/hl13571/archive/2008/01/28/1056671.html
Ó¢ÎÄÔ­ÎĵØÖ·
Understanding Single Sign-On in ASP.NET 2.0
Àí½âASP.NET 2.0Öеĵ¥µãµÇ¼
Published: 16 Jan 2008
ÕªÒª
ÔÚÕâƪÎÄÕÂÖУ¬MasoudÌÖÂÛÁËÓ¦ÓÃASP.NETÖÐͳһÉí·ÝÑé֤ģÐͽøÐпçÓ¦ÓóÌÐòÑéÖ¤µÄÎÊÌ⣬°üÀ¨£ºMembership Prov ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ