知足常乐,享受生活

2006年2月16日

摘要: 1. 打开新的窗口并传送参数: 传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数:string a = Request.QueryString("id");string b = Request.QueryStr... 阅读全文
posted @ 2006-02-16 11:18 OnlyLiu 阅读(207) 评论(0) 推荐(0) 编辑
 
摘要: I'm using several datagrids where the user can select the row by clickinganywhere on that row. I'd like to be able to show the hand cursor whenmousing over databound rows. Does anyone know how to d... 阅读全文
posted @ 2006-02-16 11:17 OnlyLiu 阅读(441) 评论(0) 推荐(0) 编辑
 
摘要: 在head中添加javascript 代码如下: 在DataGrid的 ItemDataBound (当数据绑定时发生)事件中: private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if(e.Item.ItemType != L... 阅读全文
posted @ 2006-02-16 11:15 OnlyLiu 阅读(217) 评论(0) 推荐(0) 编辑
 
摘要: Practical use of the DataGrid's ItemDataBound event.http://www.codeproject.com/aspnet/ItemCreated.aspAdvanced DataGrid Formating with ItemDataBoundhttp://www.codeproject.com/aspnet/PrettyDatagrids.asp... 阅读全文
posted @ 2006-02-16 10:40 OnlyLiu 阅读(535) 评论(0) 推荐(0) 编辑
 
摘要: 原文地址:http://www.microsoft.com/china/msdn/library/dnaspp/html/aspnet-commondatagridmistakes.asp摘要:学习如何避免在使用 ASP.NET Datagrid 控件进行开发时可能发生的一些常见错误(本文包含一些指向英文站点的链接)。目录 可以使用 Datagrid 创建列表数据而没有使用 忘记在 Page_Lo... 阅读全文
posted @ 2006-02-16 10:40 OnlyLiu 阅读(153) 评论(0) 推荐(0) 编辑
 
摘要: 1.日期的显示2.传递DataGrid中的值3.在DataGrid里添加确认删除的对话框4.格式化DataGrid :将数据原中的0,1值转换成实际的文字 5.在DataGrid中选择,确认,删除多行复选框列表6.利用dropdownlist下拉列表框,显示数据库表中的某个字段 7.取得Datagrid里的checkbox返回值 8.datagrid中加入统计值 9.如何用程序隐藏和显示DataG... 阅读全文
posted @ 2006-02-16 09:38 OnlyLiu 阅读(387) 评论(0) 推荐(0) 编辑