我爱Aspx >> Asp.Net >> 一个用webservice behavior实现的三级联动下拉列表框s += ","+dr["fenlei"].ToString();
}
return s;
}
[WebMethod]
public string leixing(string q)
{
string str="select distinct type from jinan where code like @#"+q+"%@#";
SqlCommand cmd=new SqlCommand(str,con);
cmd.Connection.Open();
SqlDataReader dr=cmd.ExecuteReader();
string s="请选择:";
while(dr.Read())
{
s += ","+dr["type"].ToString();
}
return s;
}
[WebMethod]
public string haoduan(string q)
{
string str="select distinct substring(code,4,4) as haoduan from jinan where type=@#"+q+"@#";
SqlCommand cmd=new SqlCommand(str,con);
cmd.Connection.Open();
SqlDataReader dr=cmd.ExecuteReader();
string s="请选择:";
Ҷƪл˵?
加强 WEB SERVICE 的安全性[05-28]
WebService Behavior的一个中文B..[05-28]
Web服务到底是什么(转)[05-28]
WEB服务有待实践的检验[05-28]
一个webseveice的例子[05-28]
正确认识“Web服务”( 转)[05-28]
什么时候应该使用Web Service【转..[05-28]
HOW TO: BETA: Integrate a .NET..[05-28]
股票报价的WebService(转天极网..[05-28]
股票报价的WebService(转天极网..[05-28]
加强 WEB SERVICE 的安全性[05-28]
WebService Behavior的一个中文B..[05-28]
Web服务到底是什么(转)[05-28]
WEB服务有待实践的检验[05-28]
一个webseveice的例子[05-28]
正确认识“Web服务”( 转)[05-28]
什么时候应该使用Web Service【转..[05-28]
WSDL文件详解(转贴)下[05-28]
HOW TO: BETA: Integrate a .NET..[05-28]
XML、SOAP以及.NET[05-28]