博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年9月3日

摘要: 在页面的load事件中添加: textbox1.Attributes["onblur"] = ClientScript.GetPostBackEventReference(控件1, null); 则当textbox 失去焦点的时候,触发控件1 的事件。 控件1 的事件可以随意写。 当写为:textbox 的 change 事件时, 就在textbox 失去焦点的时候 执行 ... 阅读全文

posted @ 2008-09-03 17:45 hyd309 阅读(18679) 评论(2) 推荐(0) 编辑

摘要: 方法一:ScriptManager.RegisterClientScriptBlock(this,typeof(Page), "NoInformation", "window.parent.frames['Add'].location.reload();", true); 此: 会弹出页面刷新错误 方法二: ScriptManager.RegisterClientScriptBlock(... 阅读全文

posted @ 2008-09-03 17:10 hyd309 阅读(931) 评论(0) 推荐(0) 编辑

摘要: 57) event.returnValue = false;" id="txtY_Revenue" style="TEXT-ALIGN: right" runat="server" Width="90%" MaxLength="12"> 或者: if (Tbx_Edition.Text != "") { bool a1=true; ... 阅读全文

posted @ 2008-09-03 10:38 hyd309 阅读(674) 评论(3) 推荐(0) 编辑