08 2012 档案
摘要:首先创建一个Silverlight项目,紧接着创建Silverlight子窗体,命名为MyChildWindow.xaml先看一下MainPage.xaml界面:子页面MyChildWindow.xaml界面:MainPage.xaml具体实现:View Code 1<Gridx:Name="LayoutRoot"Background="White">2<ButtonContent="显示子窗口"Height="23"Click="ShowWindow_Click"Margin
阅读全文
摘要:添加控件:<asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ValidateDropQY"ControlToValidate="dropqy" Display="Dynamic" ErrorMessage="此处有错误" ValidationGroup="val"></asp:CustomValidator>添加JS
阅读全文
摘要:在实际的开发过程中,经常遇到存储过程分页,下面根据实际情况总结的几种方法:数据库名称: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)+&#
阅读全文
摘要: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
阅读全文
摘要:在实际的开发过程中,经常需要对查询出来的DataTable进行过滤,比如:页面初始化的时候显示出所有的记录,页面中有查询框,当页面初始化之后利用查询框进行精确查找,这种情况我们通常采用的方法如下:方法一、初始化的时候调用一个存储过程,当点击查询按钮的时候在调用另外一个存储过程,当然,这种逻辑是可以实现 的,但是不提倡。方法二、对页面初始化时候查询出的DataTable进行过滤,这正方法可行性比较高,具体如下:第一步:拼接筛选的具体字符串string filterExpression="";if (!string.IsNullOrEmpty(txtHouseBusinessN
阅读全文
摘要:现在有一个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>
阅读全文
摘要:$("#top_notice").css("display","block");//对div进行设置//$("#top_notice").attr("style","display:block;");//$("#top_notice").show();window.location.replace("SharePoint/Login.aspx"); 重定向页面
阅读全文