只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-06-14 14:23 学海无涯,天道酬勤 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 一般处理程序在使用session时,必须应用标记接口IRequiressessionstate 阅读全文
posted @ 2019-07-24 10:56 学海无涯,天道酬勤 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 cookie的简单使用 1 public partial class Login:System.Web.UI.pag 2 { 3 public string LoginUserName{get;set;} 4 protected void Page_Load(object sendet 阅读全文
posted @ 2019-07-19 10:28 学海无涯,天道酬勤 阅读(2282) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-15 11:29 学海无涯,天道酬勤 阅读(228) 评论(0) 推荐(0) 编辑
摘要: post 请求 enctpe="application/x-www-form-urlencoded" 是吧要发送的数据都以“name=zhangsan&pwd=123”的格式发送 阅读全文
posted @ 2019-07-15 11:13 学海无涯,天道酬勤 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 使用ajax异步刷新访问服务器 后端代码 这里是使用button按钮触发ajax 阅读全文
posted @ 2019-07-15 10:45 学海无涯,天道酬勤 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 当开发web应用程序时,如果有错误页的话,我们为了保证数据的安全性,通常都是通过一个配置文件显示出来 详细代码 一般发布都会把 mode="RemoteOnly" 阅读全文
posted @ 2019-07-15 10:24 学海无涯,天道酬勤 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 或者在页面加载中加入一行 TextBox.CheckForIIegalCrossThreadCalls=False; 阅读全文
posted @ 2019-07-10 10:02 学海无涯,天道酬勤 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: 首先引用: COM中的 Microsoft Excel 14.0 Object Library接着引用: using Microsoft.Office.Interop.Excel; using Microsoft.Office.Core; 1 public void ExecutePrint(Stu 阅读全文
posted @ 2019-07-05 17:36 学海无涯,天道酬勤 阅读(474) 评论(0) 推荐(0) 编辑
摘要: IComparer<T> 这是一个接口,是用来给对象中的某一个属性经行排序 1 class NameDESC:IComparer<StudentExt> 2 { 3 public int Compare(StudentExt x,StudentExt y) 4 { 5 return y.Studen 阅读全文
posted @ 2019-07-05 14:51 学海无涯,天道酬勤 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: 1 public string SerializeObject(object obj) 2 { 3 //将object类型对象(注:必须是可序列化的对象)转换为二进制序列字符串 4 IFormatter formatter=new BinaryFormatter(); 5 string result 阅读全文
posted @ 2019-07-05 11:59 学海无涯,天道酬勤 阅读(438) 评论(0) 推荐(0) 编辑