2012年11月23日

asp.net 使用UpdatePanel 返回服务器处理后弹出对话框

摘要: 在ajax中的UpdatePanel弹出对话窗,可以使用:ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "alert", "alert('更新成功!')", true);修改后跳到另一个页面中去时,可以使用:ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "click", "location.replace('UserManger.a 阅读全文

posted @ 2012-11-23 17:43 静以修身俭以养德 阅读(317) 评论(0) 推荐(0) 编辑

在Repeter中用RadioButton生成单选按钮组的实现

摘要: 我们在运用Repeter绑定数据到RadioButton在前台生成单选按钮组的时候,我们可能会遇到生成的按钮并不能实现单选这种情况,即使你设置了GroupName属性,也不会起作用。这时我们就要借助于我们强大的JS了。代码如下:前台Repeter部分代码:<asp:Repeater ID="RepeaterYM" runat="server"> <ItemTemplate> <li> <asp:RadioButton ID... 阅读全文

posted @ 2012-11-23 17:42 静以修身俭以养德 阅读(232) 评论(0) 推荐(0) 编辑

导航