摘要: 一、Jquery向aspx页面请求数据前台页面JS代码:$("#Button1").bind("click", function () { $.ajax({ type: "post", url: "default.aspx", data: "name=" + $("#Text1").val(), success: function (result) { alert(re... 阅读全文
posted @ 2014-03-07 13:57 Y.G.H 阅读(355) 评论(0) 推荐(0) 编辑
摘要: /// /// 递归选中所有的自节点 /// /// TreeNode private void checkAllChildNode(TreeNode nodeThis) { foreach (TreeNode childNode in nodeThis.Nodes) { childNode.Checked = nodeThis.Checked; if (childNode.Nodes != null) ... 阅读全文
posted @ 2014-03-07 13:54 Y.G.H 阅读(1144) 评论(0) 推荐(0) 编辑
摘要: public class ValidationRegex { /// /// 正则表达式字符串 /// public static string pattern ; /// /// 公共方法 /// /// 正则表达式 /// 待验证字符串 /// Bool private static bool PublicMethod(string pattern, string validteString) { Regex re... 阅读全文
posted @ 2014-03-07 13:53 Y.G.H 阅读(689) 评论(0) 推荐(0) 编辑
摘要: 利用委托轻松实现,子窗体向父窗体传值。子窗体实现代码://声明委托public delegate void MyDelMsg(string msg);//定义一个委托变量public MyDelMsg myDelMsg;private void button1_Click(object sender, EventArgs e){ if (myDelMsg!=null) { //调用 myDelMsg(textBox1.Text); this.Close(); }}父窗体调用子窗体 ... 阅读全文
posted @ 2014-03-07 13:51 Y.G.H 阅读(520) 评论(0) 推荐(0) 编辑