实在想不出自己哪里出错了,关于强数据集无法修改数据库的问题
折腾了2天,不管是用弱数据集,还是用强数据集,都无法修改数据库中的数据......哪位大哥能指点下么.....
程序代码: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;
}
}
}
}







.
