上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 添加控件:<asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ValidateDropQY"ControlToValidate="dropqy" Display="Dynamic" ErrorMessage="此处有错误" ValidationGroup="val"></asp:CustomValidator>添加JS 阅读全文
posted @ 2012-08-22 11:33 jsping68 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 在实际的开发过程中,经常遇到存储过程分页,下面根据实际情况总结的几种方法:数据库名称:myTest1、思路:利用select top and select not in 排除例外情况的分页use myTestgocreate procedure proc_paged_with_notin ( @pageIndex int, --页索引 @pageSize int --每页记录数) as begin set nocount on; --没有返回值 declare @sql nvarchar(500) set @sql='select top '+str(@pageSize)+&# 阅读全文
posted @ 2012-08-19 11:04 jsping68 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Bulk update the datas of SQL SERVER(2005 OR 2008) using XMLwhen we update data ,we firstly use the Class of StringBuilder to build the string of XML:StringBuilder builder=new StringBuilder();builder.Append("<root>");builder.AppendFormat("<ID>{0}</ID>",ID.Text);b 阅读全文
posted @ 2012-08-15 10:49 jsping68 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 在实际的开发过程中,经常需要对查询出来的DataTable进行过滤,比如:页面初始化的时候显示出所有的记录,页面中有查询框,当页面初始化之后利用查询框进行精确查找,这种情况我们通常采用的方法如下:方法一、初始化的时候调用一个存储过程,当点击查询按钮的时候在调用另外一个存储过程,当然,这种逻辑是可以实现 的,但是不提倡。方法二、对页面初始化时候查询出的DataTable进行过滤,这正方法可行性比较高,具体如下:第一步:拼接筛选的具体字符串string filterExpression="";if (!string.IsNullOrEmpty(txtHouseBusinessN 阅读全文
posted @ 2012-08-14 11:13 jsping68 阅读(3129) 评论(0) 推荐(1) 编辑
摘要: 现在有一个xml文件,名称:BookStore.xml,数据如下:<?xml version="1.0" encoding="gb2312"?><bookstore> <book genre="fantasy" ISBN="2-3631-4"> <title>Oberon's Legacy</title> <author>Corets, Eva</author> <price>5.95</price> 阅读全文
posted @ 2012-08-07 16:58 jsping68 阅读(376) 评论(0) 推荐(0) 编辑
摘要: $("#top_notice").css("display","block");//对div进行设置//$("#top_notice").attr("style","display:block;");//$("#top_notice").show();window.location.replace("SharePoint/Login.aspx"); 重定向页面 阅读全文
posted @ 2012-08-01 09:38 jsping68 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 闲来无事,把最近使用Ajax无刷新开发的一些知识整理一下,一边回顾:项目一:修改密码 HTML代码: <input id="txtOriginalPass" type="text" /> <input id="txtNewPass" type="text" /> <input id="txtConfirmPass" type="text" /> <input id="btnSubmit" type="bu 阅读全文
posted @ 2012-07-31 17:41 jsping68 阅读(15663) 评论(2) 推荐(2) 编辑
摘要: 功能图如下: 功能说明:仿照百度搜索的自动完成搜索功能,完整版。 /**************技术:.NET******************/ /*******第一次编辑时间:2012年07月16日*********/ /*********修改时间:2012年08月88日**********/ /**********修改说明:本实例存在缺陷**********/ /*************Author:jsping**************/ /*************QQ:759963787************/今天有空,在原来我写的文... 阅读全文
posted @ 2012-07-26 12:44 jsping68 阅读(1079) 评论(0) 推荐(1) 编辑
摘要: public static string MoneyToUpper(string strAmount) { string functionReturnValue =null; bool IsNegative =false; // 是否是负数 if (strAmount.Trim().Substring(0, 1) =="-") { // 是负数则先转为正数 strAmount = strAmount.Trim().Remove(0, 1); IsNegative =true; } string strLower =null; string strUpart =null; s 阅读全文
posted @ 2012-07-25 10:33 jsping68 阅读(4835) 评论(0) 推荐(0) 编辑
摘要: 1、if (!IsPostBack) { DBindFilter(); this.gvwData.Attributes.Add("SortExpression", "HouseID"); this.gvwData.Attributes.Add("SortDirection", "ASC"); GridViewDataBind(); chklColumns.Visible = !IsPostBack; //设置“显示字段”的下拉属性 } else { chklColumns.Visible = IsPostBack; 阅读全文
posted @ 2012-06-26 18:47 jsping68 阅读(2620) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页