摘要: protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DropDownList ddlStatus = e.Row.FindControl... 阅读全文
posted @ 2015-05-29 09:43 yida_mingzhu 阅读(237) 评论(0) 推荐(0) 编辑
摘要: function selectSingleRadio(rbtn) { var radio = document.getElementsByTagName("radio"); var arrAll = document.all; for (i = 0; i ").value = rbtn.nex... 阅读全文
posted @ 2015-05-29 09:00 yida_mingzhu 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 前台:function yz2() { var username = $("#TextBox1").val(); $.ajax({ type: "POST", url: "UserAdd.aspx?action=ajax", data: "username=" + username, success... 阅读全文
posted @ 2015-05-29 08:47 yida_mingzhu 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 1.验证【不能为空】 function yz() { var username = $("#TextBox1").val(); if (username == null || username == "") { alert("用户名不能为空!"); return false; }return ... 阅读全文
posted @ 2015-05-29 08:41 yida_mingzhu 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.Console.ReadLine()方法用于读取一行字符,并将获得的数据保存在字符串变量中 Console.Read()方法用于获得用户输入的任何一个字符(可以是任何的字母或数字)的ASCII值。2.Console.WriteLine()方法(在屏幕上显示文本)输出信息后 换行Console.W... 阅读全文
posted @ 2015-04-07 09:43 yida_mingzhu 阅读(78) 评论(1) 推荐(0) 编辑
摘要: 1.DISTINCT distinct这个关键字用来过滤掉多余的重复记录只保留一条,但往往只用它来返回不重复记录的条数,而不是用它来返回不重记录的所有值。其原因是distinct只有用 二重循环查询来解决,而这样对于一个数据量非常大的站来说,无疑是会直接影响到效率的。 2.ORDER BY ORDE 阅读全文
posted @ 2015-04-03 17:00 yida_mingzhu 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 大体的分为 字符,2进制,数值,日期,其他类型字符char 是定长的。如char(8),你输入的字符小于8时,它会再后面补空值。当你输入的字符大于指定的数时,它会截取超出的字符。varchar(n) 包含 n 个字节的可变长度且非 Unicode 的字符数据。n 的值(1 - 8,000),存储大小... 阅读全文
posted @ 2015-04-03 15:49 yida_mingzhu 阅读(94) 评论(1) 推荐(0) 编辑