随笔分类 -  ASP.NET

上一页 1 2
ASP.NET
CustomValidator 使用自定义脚本验证 例子
摘要:<script type="text/javascript"> function ClientValidate(source, arguments) { if (parseInt(arguments.Value)>10) arguments.IsValid = true; else arguments.IsValid = false; } </script> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <a 阅读全文
posted @ 2012-05-03 13:46 万德源 阅读(209) 评论(0) 推荐(0)
递归创建树节点方法 选中权限值
摘要:public void CreateNode(TreeNode tn, List list) { foreach (RolePermissionEntity rp in list) { TreeNode tnd = new TreeNode(rp.PermissionName,rp.Permis... 阅读全文
posted @ 2012-04-28 15:31 万德源 阅读(780) 评论(0) 推荐(0)
asp.net js 提示信息封装函数
摘要:/// <summary> /// js 提示信息 例子如 只提示信息 可以JavaScript("hell world!") /// 如果有其他脚本可以JavaScript("alert('hello world!');","document.location='default.aspx';") /// </summary> /// <param name="actions"></param> public void JavaScri 阅读全文
posted @ 2012-04-25 09:45 万德源 阅读(351) 评论(0) 推荐(0)

上一页 1 2