易截截图软件、单文件、免安装、纯绿色、仅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


相关文档:

asp.net实现文件下载(wap手机下载)

这个问题困扰了我两天,手机下载
 protected void Page_Load(object sender, EventArgs e)
    {
        string filename = Server.UrlDecode(Request["upload"]);
        string filePath = Server.MapPath("uploa ......

Asp.Net Forms验证(自定义、角色提供程序、单点登录)

Asp.Net Forms验证(自定义、角色提供程序、单点登录)
以前开发项目时经常是自己开发一套用户权限管理系统进行验证,比较灵活。最近为了单点登录的问题又把Asp.Net自带的验证方式看了一遍,发现这种方式也比较方便,功能也还可以。在Asp.Net提供了三种常用的验证方式:Windows方式是和IIS结合起来可以实现基本、摘要、集成 ......

asp.net分页

1 using System;
  2 using System.Collections.Generic;
  3 using System.Collections.Specialized;
  4 using System.Linq;
  5 using System.Web;
  6 using System.Text;
  7 u ......

ASP.NET中连接数据库的各种方法


今天,学习了ASP.NET中连接数据库的各种方法,这是我自己的一个小总结,不一定完全正确,仅供参考!   O(∩_∩)O~
 
 
连接SQL数据库的方法:
(一)、在Web.Config中创建连接字符串:
1、
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename= ......

asp.net缓存的一些基本知识

介绍
缓存是在内存存储数据的一项技术,也是ASP.NET中提供的重要特性之一。例如你可以在复杂查询的时候缓存数据,这样后来的请求就不需要从数据库中取数据,而是直接从缓存中获取。通过使用缓存可以提高应用程序的性能。
主要有两种类型的缓存:
1.输出缓存Output caching
2.数据缓存Data caching
1. 输出缓存(Output ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号