- 博客(20)
- 资源 (4)
- 问答 (1)
- 收藏
- 关注
转载 jQuery验证插件 Validate详解
原文地址:jQuery验证插件 Validate详解 http://www.jb51.net/article/57607.htm
2016-05-05 16:21:27
421
原创 sql统计表个数以及表中字段个数
统计数据库中表的个数select count(*) from sysobjects where type='U'统计表中字段个数select count(*) from syscolumns where id = object_id('表名')
2016-05-03 13:56:23
13986
转载 自定义上传按钮样式的终极解决方案_input透明法
点击打开链接 http://jingyan.baidu.com/article/6181c3e0708609152ff1537a.html
2016-01-11 18:34:04
407
原创 SQL数据操作(给B表插入数据时候在数据必须存在于A表)
CREATE TRIGGER [dbo].[trg_Test_B_Num] ON [dbo].[Test_B] FOR INSERTAS SET NOCOUNT ON IF NOT EXISTS(SELECT [num] FROM [dbo].[Test_A],[INSERTED] WHERE [Test_A].num=[INSERTED].A_num)BEG
2015-09-28 14:09:30
533
原创 递归查询(知道父ID查子信息or知道子ID找父信息)
with find (id,name,parent_id) as( select id,name,parent_id from dbo.ar_cp_school where id=20 union all select a.id,a.name,a.parent_id from ar_cp_school a inner join find b on a.parent_id=b.id
2015-08-13 08:54:45
801
原创 高级模糊查询
select * from dbo.ar_cp_question where (','+zt_id+',' like '%,11,%') and (','+nl_id+',' like '%,5,%')
2015-07-30 18:01:39
687
原创 CheckBoxList 值写入与显示绑定
主题1 主题2 主题3 主题4 主题5 写入:model.zt_id = string.Join(",", chkZt.Items.Cast().
2015-07-30 14:40:18
641
原创 使用parent.openDialog弹出子窗体操作完成后自动关闭子窗体
eg: &paper_id=', 800, 800)"> 随机出题 ans: this.Page.ClientScript.RegisterStartupScript(GetType(), "", "parent.$.ligerDialog.close();");
2015-02-27 11:23:33
5677
原创 几种典型的分页sql,下面例子是每页50条,198*50=9900,取第199页数据。
-写法1,not in/topselect top 50 * from pagetest where id not in (select top 9900 id from pagetest order by id)order by id--写法2,not existsselect top 50 * from pagetest where not exists (select
2015-02-25 14:47:11
1163
原创 如何解决sql并列排名方法
sql 语句:select id,click,排名=dense_rank() over (order by 列名desc) from 表名
2014-12-30 10:54:53
2929
原创 jQuery 隔行换色
实现CSS隔行换色的方法 $(document).ready(function () { odd = { "background": "#FFF", "line-height": "30px", "text-indent": "1em" }; //奇数样式 even = { "background": "#EEE", "line-he
2014-12-30 10:48:14
413
转载 C#中截取字符串
String substring(int beginIndex) String substring(int beginIndex, int endIndex) String.Substring (Int32) 子字符串从指定的字符位置开始。 String.Substring (Int32, Int32) 子字符串从指定的字符位置开始且具有指定的长度。举例如下:
2014-02-17 17:19:47
535
原创 ASP.NET TextBox 当鼠标点击后清空默认提示文字
方法一 aspx页面:前台代码: 后台代码public partial class _Default : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { txtKeywords.Attributes.Add
2013-11-29 17:41:55
1128
原创 只能输入数字|只能输入数字或者小数|只能输入字母和汉字|只能输入数字和字母不能是中文
1.文本框只能输入数字代码(小数点也不能输入) 2.只能输入数字,能输小数点 3.数字和小数点方法二 4.只能输入字母和汉字 5.只能输入英文字母和数字,不能输入中文 6.只能输入数字和英文chun 7.小数点后只能有最多两位(数字,中文都可输入),不能输入字母和运算符号:57)
2013-11-29 14:05:29
701
原创 把修改方法写活
/// /// 修改一列数据 /// public void UpdateField(int id, string strValue) { StringBuilder strSql = new StringBuilder(); strSql.Append("update
2013-11-28 14:08:50
458
ASP中HTML控件,UI层获取文本值问题
2013-11-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人