#region GetCityList
[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]
public DataSet GetCityList(int povinceid)
{
string sql="select * from city where father="+povinceid;
return GetDataSet(sql);
}
#endregion
对这段代码的结构有点模糊, #region GetCityList和#endregion是这代码的开始和结束标志吧?
最奇怪的是[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]用"[]"括起来表示什么意思呢?
[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]
public DataSet GetCityList(int povinceid)
{
string sql="select * from city where father="+povinceid;
return GetDataSet(sql);
}
#endregion
对这段代码的结构有点模糊, #region GetCityList和#endregion是这代码的开始和结束标志吧?
最奇怪的是[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]用"[]"括起来表示什么意思呢?
不是,这只是标记一个区域,你可以把他折叠起来!
中括号里的东西你看看特性编程就知道了!