05 2012 档案
递归选中treeview 树节点的值
摘要:/// <summary> /// 选中treeview的某个节点,需要每个node的value不同 /// </summary> /// <param name="sNodeValue"></param> private void selectNode(TreeNodeCollection tns, string sNodeValue) { foreach (TreeNode tRoot in tns) { if (tRoot.Value == sNodeValue) { tRoot.Checked=true; return 阅读全文
posted @ 2012-05-30 14:11 万德源 阅读(276) 评论(0) 推荐(0)
asp.net form 验证 和取值
摘要:FormsAuthenticationTicket ticket = new FormsAuthenticationTicket( 1, "ticketName", DateTime.Now, DateTime.Now.AddMinutes(60), false, "{UserNAme:'sanmao'}" ); string token = FormsAuthentication.Encrypt(ticket); HttpCookie userCookie = new HttpCookie(FormsAuthentication.For 阅读全文
posted @ 2012-05-18 16:53 万德源 阅读(390) 评论(0) 推荐(0)
滚动 Div 例子代码
摘要:<style type="text/css"> .scroll { width: 300px; /*宽度*/ height: 200px; /*高度*/ color: red; /*颜色*/ font-family: 楷体; /*字体*/ padding-left: 10px; /*层内左边距*/ padding-right: 10px; /*层内右边距*/ padding-top: 10px; /*层内上边距*/ padding-bottom: 10px; /*层内下边距*/... 阅读全文
posted @ 2012-05-15 11:39 万德源 阅读(187) 评论(0) 推荐(0)
List作为GridView数据源时,绑定模板列的例子
摘要:List作为GridView数据源时,绑定模板列的例子 (2011-11-13 16:38:12)转载▼ 标签: gridview ... 阅读全文
posted @ 2012-05-10 18:17 万德源 阅读(6112) 评论(0) 推荐(1)
此时无足够的可用内存,无法满足操作的预期要求,可能是由于虚拟地址随便造成的。请稍候重试。 jm vs咋还会有这个问题
摘要:问题原因:微软的软件的bug问题解决:打微软软件补丁补丁地址:https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=29729 阅读全文
posted @ 2012-05-09 10:09 万德源 阅读(272) 评论(0) 推荐(0)
sqlserver split函数
摘要:ALTER FUNCTION [dbo].[UFun_SqlSplit] (@Str varchar(120),@Sp varchar(120))RETURNs @table TABLE( ID int IDENTITY PRIMARY KEY, value nvarchar(max) )BEGIN/*Test:select * from SqlSplit('123,234',',')*/IF LEN(@Str)<1return;DECLARE @pos intDECLARE @temppos intSET @pos =0;WHILE(CHARINDEX( 阅读全文
posted @ 2012-05-04 10:01 万德源 阅读(288) 评论(0) 推荐(0)
CustomValidator 使用自定义脚本验证 例子
摘要:<script type="text/javascript"> function ClientValidate(source, arguments) { if (parseInt(arguments.Value)>10) arguments.IsValid = true; else arguments.IsValid = false; } </script> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <a 阅读全文
posted @ 2012-05-03 13:46 万德源 阅读(209) 评论(0) 推荐(0)