RT谢谢!!!

解决方案 »

  1.   

    http://chs.gotdotnet.com/quickstart/aspplus/
      

  2.   

    机子上的SDK里好象就有一个。
      

  3.   

    我给你写个吧很简单的。using System;
    using System.Web;
    using System.Web.Services;
    using System.Web.Services.Protocols;
    using System.Data.SqlClient;
    using System.Data;[WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class Service : System.Web.Services.WebService
    {
        public Service () {        //如果使用设计的组件,请取消注释以下行 
            //InitializeComponent(); 
        }    [WebMethod]
        public string HelloWorld() {
            return "Hello World";
        }    [WebMethod]
        public bool sql_conn(string sql, string data_source, string table_name, string User, string password)
        {
            string ErrorMsg = "";
            try
            {
                string strConn = "data source='" + data_source + "';initial catalog='" + table_name + "';User ID='" + User + "';Password='" + password + "';";
                SqlConnection conn = new SqlConnection(strConn);
                conn.Open();
                SqlCommand comm = new SqlCommand(sql, conn);
                comm.ExecuteNonQuery();
                conn.Close();
                return true;
            }
            catch (Exception ee)
            {
                ErrorMsg = ee.Message;
                return false;
            }
        }
    自己去研究吧。我是C#.NET写的