摘要: Response.ContentType = "application/octet-stream"; string filename = e.CommandArgument.ToString(); filename = UploadHelper.getFileName(filename.Replace("/","\")); Resp... 阅读全文
posted @ 2007-09-22 00:37 星空竹月 阅读(302) 评论(1) 推荐(0) 编辑
摘要: 示例:输出asp.net 网站路径。 private void responseHtml() ...{ System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(string.Format("当前时间: {0}", Server.HtmlEncode(DateTime... 阅读全文
posted @ 2007-09-22 00:30 星空竹月 阅读(1487) 评论(2) 推荐(0) 编辑
摘要: 1. Accordion 【功能概述】 Accordion可以让你设计多个panel 并且一次只显示一个Panel .在页面上的显示效果就像是使用了多个CollapsiblePanels只不过每一次只展开其中一个CollapsiblePanel.Accordion控件内部包含了若干个AccordionPane,每一个AccordionPane的template里包括了对其Header和Conte... 阅读全文
posted @ 2007-09-22 00:28 星空竹月 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1.avi格式 代码片断如下: 2.mpg格式 代码片断如下:代码片断如下: 3.smi格式 4.rm格式 代码片断如下: 5.wmv格式 代码片断如下: 6.wma格式 放在 里面。下面是部分解释: 7.Windows Media Player 系列(不同面板样式) 综合型: 简易型: 标签型: 多功能型: 不... 阅读全文
posted @ 2007-09-22 00:24 星空竹月 阅读(341) 评论(0) 推荐(0) 编辑
摘要: protected void Page_Load(object sender, EventArgs e) ...{ if (!IsPostBack) ...{ ViewState["LineNo"] = 0; //0为奇数行,1为偶数行 } } //数据行建立事件 protected v... 阅读全文
posted @ 2007-09-22 00:21 星空竹月 阅读(503) 评论(1) 推荐(0) 编辑
摘要: // 输出硬盘文件,提供下载 支持大文件、续传、速度限制、资源占用小 // 输入参数 _Request: Page.Request对象, _Response: Page.Response对象, _fileName: 下载文件名, _fullPath: 带文件名下载路径, _speed 每秒允许下载的字节数 // 返回是否成功 public static bool ResponseFi... 阅读全文
posted @ 2007-09-22 00:20 星空竹月 阅读(272) 评论(1) 推荐(0) 编辑
摘要: 可以用"> 后台 protected bool showflag=false; showflag=判断条件 阅读全文
posted @ 2007-09-22 00:18 星空竹月 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 1、DataGrid动态模板列更新数据并且分页的例子 http://www.cnblogs.com/lovecherry/archive/2005/03/26/126102.html 2、DataGrid动态添加模板列的一个例子 http://www.cnblogs.com/lovecherry/archive/2005/03/25/125526.html 3、DataGrid实现增删(带提... 阅读全文
posted @ 2007-09-22 00:15 星空竹月 阅读(334) 评论(0) 推荐(0) 编辑
摘要: DataGrid点击删除按钮弹出确认对话框一个好办法 datagrid-》属性生成器-》列-》添加按钮列-》删除-》文本(T)->在文本框里加上: 删除 不错的办法 Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1766770 ================================ HTML代码为: 阅读全文
posted @ 2007-09-22 00:14 星空竹月 阅读(237) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.We... 阅读全文
posted @ 2007-09-22 00:00 星空竹月 阅读(362) 评论(0) 推荐(0) 编辑