posted @ 2007-03-03 10:07 hhq80 阅读(442) 评论(0) 推荐(0) 编辑
摘要:
输入框为服务器端运行 Label Label 代码 private void Button3_Click(object sender, System.EventArgs e) { Label1.Text = "选择的行号:" + Request.Form["rad"].ToString(); rd.Value = Request.For... 阅读全文
摘要:
最简格式:这是一个偷巧的方法,但不通用。前提是这个页面只有一个datagrid,且只有datagrid中有checkbox;这个就比较方便。主要思路就是搜索出整个页面的checkbox,将它们全部选中或反选。 // 全选 function allCheck() { for (var i=0;i<Form1.elements.length;i++) { var e=Form1.elements[... 阅读全文
posted @ 2007-03-03 10:00 hhq80 阅读(178) 评论(0) 推荐(0) 编辑
摘要:
In Part 1 we looked at how to add a data-dependent DropDownList to the footer of a DataGrid. In this part we'll see how to add two DropDownLists, with the second DropDownList dependent upon the first.... 阅读全文
posted @ 2007-03-02 21:21 hhq80 阅读(247) 评论(0) 推荐(0) 编辑
摘要:
IntroductionIn a previous article by John Sanborn titled Adding a New Record to the DataGrid, John examined how to use the DataGrid footer as a means for inserting a new record into the DataGrid. For ... 阅读全文
posted @ 2007-03-02 21:19 hhq80 阅读(222) 评论(0) 推荐(0) 编辑
摘要:
' SelectedIndex='' /> ' /> ' Columns="80" /> 阅读全文
posted @ 2007-03-02 21:17 hhq80 阅读(225) 评论(0) 推荐(0) 编辑
摘要:
Private Sub DataGrid1_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid1.ItemCreated If (e.Item.ItemType = Lis... 阅读全文
posted @ 2007-03-02 21:12 hhq80 阅读(151) 评论(0) 推荐(0) 编辑
摘要:
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { //添加自定义属性,当鼠标移过来时设置该行的背景色为"6699ff",并保存原背景色 e.Item.Attributes.Add("onmouseover","currentcolor=t... 阅读全文
posted @ 2007-03-02 17:33 hhq80 阅读(187) 评论(0) 推荐(0) 编辑
摘要:
--清除在已在销售中消化,使用校验后又重新插入的数据 drop table pcje2007select lsh,pcrq,xmbm,ph,sqys,sqyje,bqss,bqsje,bqfs,bqfje,jcs,pcs,sqyje+bqsje-bqfje+(dslsj*(pcs-jcs)) as pcje,round(PCS*DSLSJ,2) AS PCJE2 into pcje2007 fr... 阅读全文
posted @ 2007-03-02 09:44 hhq80 阅读(252) 评论(0) 推荐(0) 编辑