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