2008年5月19日

摘要: 阅读全文
posted @ 2008-05-19 17:19 苏城√小子 阅读(258) 评论(0) 推荐(0)

2008年5月13日

摘要: 子窗体要调用父窗体控件必须将主窗体控件的Modifiers属性设为public 阅读全文
posted @ 2008-05-13 11:02 苏城√小子 阅读(246) 评论(0) 推荐(0)

2008年4月18日

摘要: 阅读全文
posted @ 2008-04-18 16:28 苏城√小子 阅读(220) 评论(0) 推荐(0)

2008年4月17日

摘要: 一、linkbutton的单击事件里关闭页面,拼接代码就是了 补充,不可能,我自己试过,再补充一下 1.关闭时提示“是否关闭” Response.Write(""); 2.直接关闭不提示 Response.Write(""); 阅读全文
posted @ 2008-04-17 14:06 苏城√小子 阅读(220) 评论(0) 推荐(0)
 
摘要: this.grid.Rows[i].Attributes.Add("onmouseover", "this.style.cursor = 'hand';this.style.backgroundColor='#4c7eb3';"); this.grid.Rows[i].Attributes.Add("onmouseout", "this.style.backgrou... 阅读全文
posted @ 2008-04-17 11:00 苏城√小子 阅读(210) 评论(0) 推荐(0)

2008年4月14日

摘要: 后台方法 //protected void chkAll_CheckedChanged(object sender, EventArgs e) //{ // for (int i = 0; i < this.grid.Rows.Count; i++) // { // ((CheckBox)grid.Row... 阅读全文
posted @ 2008-04-14 13:32 苏城√小子 阅读(725) 评论(0) 推荐(0)

2008年4月11日

摘要: private string ascOrDesc { get { if (ViewState["ascOrDesc"] == null) ViewState["ascOrDesc"] = "ASC"; return ViewState["ascOrDesc"].ToString(); } set { ViewState["ascOrDesc"] = value; } } pr... 阅读全文
posted @ 2008-04-11 16:50 苏城√小子 阅读(428) 评论(0) 推荐(0)

2008年4月10日

摘要: 阅读全文
posted @ 2008-04-10 13:19 苏城√小子 阅读(230) 评论(0) 推荐(0)
 
摘要: 前台调后台 1 前台放一个按钮。设置为隐藏。注意:不能直接设置Visible=false的方式,这样的话在ASP.Net 2.0编译后的代码里是找不到这个按钮的。需要设置风格:style="display:none;" 2 双击按钮,写入C#方法,或者写一个调用后台其他方法的代码段 3 前台JS调用的时候,照如下写,这样可以模拟按钮的点击事件,触发后台方法: document.getElem... 阅读全文
posted @ 2008-04-10 13:09 苏城√小子 阅读(1490) 评论(0) 推荐(0)