产品名称:
价格:
using System; using System.Linq; using System.Web; using DataSetProductsTableAdapters; public class GetPrice : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; //context.Response.Write("Hello World"); string name = context.Request["text1"]; var data = new PriceTableAdapter().GetDataByName(name);//需要建一个强类型的dataset if (data.Count