随笔分类 -  Asp.net

1

About web of c#
20160622001 GridView 删除列 用模板实现删除时提示确认框
摘要:GridView在使用CommandField删除时弹出提示框,在.net2005提供的GridView中我们可以直接添加一个 CommandField删除列:<asp:CommandField ShowDeleteButton="True" />,完后在它的RowDeleting事件中完成删除。但 阅读全文

posted @ 2016-06-22 10:54 追逐苦痛 阅读(252) 评论(0) 推荐(0)

20160620001 FileUpload控件获取上传文件的路径
摘要:参考地址: http://bbs.csdn.net/topics/350051517 —————————————————————————————— 用js实现 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="BorrowPage.asp 阅读全文

posted @ 2016-06-20 10:58 追逐苦痛 阅读(2743) 评论(0) 推荐(0)

20160308001 GridView的Sorting排序
摘要:参考地址: http://www.cnblogs.com/yinluhui0229/archive/2011/08/01/2124169.html 功能介绍:单击gridview的某一列列头,可以对该列进行排序。实现方法:1.设置AllowSorting="True"2.在现实的字段中添加SortE 阅读全文

posted @ 2016-03-08 15:00 追逐苦痛 阅读(257) 评论(0) 推荐(0)

20160113007 跳转的页面传递参数
摘要:1. asp.net(c#)网页跳转七种方法小结 http://www.jb51.net/article/21046.htm2. 跳转的页面传递参数 webform1.aspx中: Response.Redirect("webform2.aspx?id=3"); webform2.aspx中: st... 阅读全文

posted @ 2016-01-13 17:29 追逐苦痛 阅读(546) 评论(0) 推荐(0)

20160113006 asp.net实现ftp上传代码(解决大文件上传问题)
摘要:using System;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste... 阅读全文

posted @ 2016-01-13 16:28 追逐苦痛 阅读(584) 评论(0) 推荐(0)

20151224001 GridView 多按钮的各种使用方法
摘要:***********************************************************************************... 阅读全文

posted @ 2015-12-24 09:06 追逐苦痛 阅读(295) 评论(0) 推荐(0)

20151221001 GridView 模板
摘要:... 阅读全文

posted @ 2015-12-21 09:32 追逐苦痛 阅读(233) 评论(0) 推荐(0)

2015-11-04 报表 (asp.net 部分)
摘要:xx申请单_查询 xx申请单_查询 提交日期开始: 提交人 : 签核状况: 已完成 未完成 全部 提交日期截止: 任务单号: 部门名称: ... 阅读全文

posted @ 2015-11-04 14:31 追逐苦痛 阅读(113) 评论(0) 推荐(0)

2015-11-04 报表(c#部分)(Datatable 查询,弹出日期控件,输入是否整数)
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using ... 阅读全文

posted @ 2015-11-04 14:29 追逐苦痛 阅读(350) 评论(0) 推荐(0)

2015-11-04 asp.net 弹出式日历控件 选择日期 Calendar控件
摘要:html代码: 无标题页 参考代码C#部分using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using Sys... 阅读全文

posted @ 2015-11-04 10:20 追逐苦痛 阅读(261) 评论(0) 推荐(0)

20150813 Asp.net 关闭子窗体 刷新Tree控件
摘要:主窗体************************************************************************************using System;using System.Collections;using System.Configuratio... 阅读全文

posted @ 2015-08-13 16:20 追逐苦痛 阅读(177) 评论(0) 推荐(0)

asp.net 关闭子窗体 刷新主窗体
摘要:主窗体************************************************************************************ //原窗口保留,以对话框形式打开新窗口: Response.Write("");**********************... 阅读全文

posted @ 2015-08-13 11:04 追逐苦痛 阅读(330) 评论(0) 推荐(0)

20150812 Asp.net 父窗体获取子窗体的返回值,更新父窗体文本控件(应用)
摘要:1. 父窗体****************************************using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;usi... 阅读全文

posted @ 2015-08-12 21:30 追逐苦痛 阅读(292) 评论(0) 推荐(0)

asp.net 父窗体获取子窗体的返回值,可用来对父窗体局部更新
摘要:今天在项目上遇到了这个问题,其实只是window.returnValue的简单应用,不是asp.net的专属内容。作为积累,记录一个简单的实现模型。图1 用到的文件 从图1中我们可以看到,只用到了两个页面,其中Default.aspx作为父页面,Default2.aspx作为子页面被弹出。Defau... 阅读全文

posted @ 2015-08-11 16:33 追逐苦痛 阅读(547) 评论(0) 推荐(0)

TreeView 节点的显示,读取,操作
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using ... 阅读全文

posted @ 2015-08-11 14:27 追逐苦痛 阅读(650) 评论(0) 推荐(0)

TreeView 读取 xml 显示节点
摘要:T2 *************************************************************************************************using System;using System.Collections;us... 阅读全文

posted @ 2015-08-07 09:54 追逐苦痛 阅读(351) 评论(0) 推荐(1)

文件上传, 打开, 删除操作
摘要:protected void Btn_Up_Click(object sender, EventArgs e) { // Specify the path on the server to // save the uploaded file to. // String savePath = @... 阅读全文

posted @ 2015-08-05 16:55 追逐苦痛 阅读(240) 评论(0) 推荐(0)

asp.net c# 打开新页面或页面跳转
摘要:1.最常用的页面跳转(原窗口被替代):Response.Redirect("XXX.aspx");2.利用url地址打开本地网页或互联网:Respose.Write("");3.原窗口保留再新打开另一个页面(浏览器可能阻止,需要解除):Response.Write("");4.效果同1中的另一种写法... 阅读全文

posted @ 2015-07-27 16:20 追逐苦痛 阅读(1490) 评论(0) 推荐(1)

asp.net 页面跳转传值的几种方式
摘要:参考地址: http://blog.csdn.net/zzzzzzzert/article/details/8486143 protected void Button1_Click(object sender, EventArgs e) { //使用querystring传值 //Respon... 阅读全文

posted @ 2015-07-21 15:47 追逐苦痛 阅读(1112) 评论(0) 推荐(0)

asp.net 查询,导出
摘要:using System;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste... 阅读全文

posted @ 2015-07-21 09:04 追逐苦痛 阅读(156) 评论(0) 推荐(0)

1