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

VFPÈçºÎµ÷ÓÃASP.NET Web·þÎñÖеÄDataSet

Ò»¡¢ASP.NET Web Service´úÂë
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data.SqlClient;
 
namespace WebService1
{
    /// <summary>
    /// Service1 µÄժҪ˵Ã÷
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService
    {
 
        [WebMethod]
        public DataTable GetProducts(int CategoryID)
        {
            SqlConnection sqlconn = new SqlConnection("server=.;uid=sa;database=NorthWind");
            sqlconn.Open();
            SqlDataAdapter sda = new SqlDataAdapter("select * from Products where CategoryID=" + CategoryID, sqlconn);
            DataSet ds = new DataSet();
            sda.Fill(ds,"temp");
            sqlconn.Close();
            return ds.Tables["temp"];
        }
    }
}
 
¶þ¡¢²âÊÔWEB·þÎñ¿ÉÓúóVFPÔõô½«Æäת»»³ÉÁÙʱ±í
         *  µ÷ÓÃWeb·þÎñ²¿·Ö
     local loSoap,lcXmlData
     loSoap = Createobject("MSSOAP.soapclient30")
     l


Ïà¹ØÎĵµ£º

dz̸ASP.net°²È«±à³Ì

ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......

asp.net mvc 1.0 ·Åµ½ftp³öÏÖµÄÎÊÌâ ½â¾ö

1>>δÄܼÓÔØÎļþ»ò³ÌÐò¼¯“System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35”»òËüµÄijһ¸öÒÀÀµÏϵͳÕÒ²»µ½Ö¸¶¨µÄÎļþ¡£
 ½â¾ö£ºµ½C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies ÏÂÕÒµ½ System.Web.Mvc.dll Îļþ ¸´ÖƵ½ÏîÄ¿µÄbinÄ¿Â¼Ï ......

asp.netʵÏÖÎļþÏÂÔØ(wapÊÖ»úÏÂÔØ)

Õâ¸öÎÊÌâÀ§ÈÅÁËÎÒÁ½Ì죬ÊÖ»úÏÂÔØ
 protected void Page_Load(object sender, EventArgs e)
    {
        string filename = Server.UrlDecode(Request["upload"]);
        string filePath = Server.MapPath("uploa ......

asp.netÖÐmvc·ÖÒ³Àà

·ÖÒ³´úÂëÈçÏ£¨PageHelper.cs£©£º
´úÂë
  1 using System;
  2 using System.Collections.Generic;
  3 using System.Collections.Specialized;
  4 using System.Linq;
  5 using System.Web;
   ......

ASP.netÖеÄvalidaterequest

Õâ¸öÊôÐÔÊÇÓÃÀ´ÑéÖ¤¿Í»§¶ËÓû§µÄÊäÈëµÄ,ÓÃÀ´ÑéÖ¤Óû§µÄÊäÈëÖÐÊÇ·ñÓÐΣÏÕ×Ö·ûµÄ,Õâ¸öÊôÐÔµÄĬÈÏֵΪtrue,΢ÈíÖ®ËùÒÔÕâô×öÊÇΪÁËÌá¸ßasp.net³ÌÐòµÄ°²È«ÐÔ,ËùÒԺܶà³ÌÐòÔ±¼´Ê¹²»ÖªµÀÔõôÀ´·ÀÓùºÚ¿ÍµÄ¹¥»÷,asp.netµÄһЩĬÈÏÊôÐÔµÈÄÚÈÝÒѾ­¶Ô°²È«½øÐÐÁË¿ØÖÆ,ÕâÒ²ÊÇΪʲôasp.netµÄ³ÌÐòÏà¶ÔÀ´Ëµ±È½Ï°²È«µÄÔ­Òò!
¡¡¡¡¼ÈÈ»Õâ¸öÊô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ