12 2007 档案
两个table中行的互换
摘要:if(ds_all.Tables.Count0) { //DataRow dr=ds.Tables[0].NewRow(); //if(ds==null) for(int j=0;j<ds.Tables[0].Rows.Count;j++) { ds_all.Tables[0].Impo... 阅读全文
posted @ 2007-12-26 18:53 heart-in-sky 阅读(159) 评论(0) 推荐(0)
隐藏DataGrid中某列
摘要:方法一: for(int i=0;i<datagrid.Items.Count+1;i++) { ((TableCell)datagrid.Controls[0].Controls[i].Controls[3]).Visible=false; } 方法二: datagrid.Columns[3].Visible =false; 隐藏第三列 阅读全文
posted @ 2007-12-11 14:52 heart-in-sky 阅读(308) 评论(1) 推荐(0)
RadAjax使用
摘要:添加引用(组件附于文件中): 将控件放于radajaxmanager中: 说明:当触发WebControl1的事件时,改变WebControl2为异步。 阅读全文
posted @ 2007-12-11 13:36 heart-in-sky 阅读(420) 评论(0) 推荐(0)
动态生成模板——DataGrid
摘要:模板类: public class DataGridTemplate : ITemplate { //创建模板列 public void InstantiateIn(Control container ) { LiteralControl lc = new LiteralControl(); lc.DataBinding += new Event... 阅读全文
posted @ 2007-12-11 12:25 heart-in-sky 阅读(258) 评论(0) 推荐(0)
初级存储过程(游标)
摘要:SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO ---先传1,2,3,4 ALTER PROCEDURE [dbo].[cw_MedicalDatalist121] @subj_code varchar(20), ---分类ID号, @start_time nvarchar(50), ---开始时间 @end_time ... 阅读全文
posted @ 2007-12-11 12:15 heart-in-sky 阅读(173) 评论(0) 推荐(0)
选择框触发dopostback事件
摘要:1:选择框页面选择页面JS触发控件的fireEvent事件:string js= "window.opener.document.Form1." + controlID + ".value='" + des + "';window.opener.document.Form1." + controlID +".fireEvent('onchange')";2:设置控件属性AutoPostBack="... 阅读全文
posted @ 2007-12-06 15:54 heart-in-sky 阅读(237) 评论(0) 推荐(0)