![]() |
#2
lantian81342013-01-14 15:27
|

using System;
using System.Collections;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Data.SqlClient;
using WebApplication2.DataSet1TableAdapters;
namespace WebApplication2
{
/// <summary>
/// $codebehindclassname$ 的摘要说明
/// </summary>
[WebService(Namespace = "http://")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class 数据集h1 : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/html";
string name = context.Request["Name"];
string password = context.Request["Password"];
Table1TableAdapter adapter = new Table1TableAdapter();
WebApplication2.DataSet1.Table1DataTable persons = adapter.GetData();
persons[0].Password = password;
persons[0].Name = name;
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
using System.Collections;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Data.SqlClient;
using WebApplication2.DataSet1TableAdapters;
namespace WebApplication2
{
/// <summary>
/// $codebehindclassname$ 的摘要说明
/// </summary>
[WebService(Namespace = "http://")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class 数据集h1 : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/html";
string name = context.Request["Name"];
string password = context.Request["Password"];
Table1TableAdapter adapter = new Table1TableAdapter();
WebApplication2.DataSet1.Table1DataTable persons = adapter.GetData();
persons[0].Password = password;
persons[0].Name = name;
}
public bool IsReusable
{
get
{
return false;
}
}
}
}