摘要:
首先,声明一个学生类。 public class Student { public string Name { get; set; } public string Age { get; set; } } 在页面首次打开时,使用DataSource属性和DataBind方法为GridView绑定数据源 阅读全文
摘要:
首先,新建一个ASP.NET项目,然后添加新项“Web Service(.asmx)”,命名为MathService。向类中添加方法,注意:只有包含WebMethod特性的方法才可以作为Web服务进行远程访问。 public class MathService : System.Web.Servic 阅读全文