08 2013 档案

[转]Oracle 多行的数据合并
摘要:本文转自:http://www.2cto.com/database/201203/125287.htmlOracle合并行范例现有如下数据id name1 a12 a23 a31 b13 b31 c1就是把相同的id的不同行合并结果是id name1 a1/b1/c12 a23 a3/b3实现:适用8i以后的:Sql代码--适用8i以后的 www.2cto.com SELECT t.id id, MAX(substr(sys_connect_by_path(t.name, '/'), 2)) str FROM (SELECT id, name, row_number() ove 阅读全文

posted @ 2013-08-28 18:23 freeliver54 阅读(533) 评论(0) 推荐(1)

[转]通过继承ConfigurationSection,在web.config中增加自定义配置
摘要:本文转自:http://www.blue1000.com/bkhtml/2008-02/55810.htm前几天写了一篇使用IConfigurationSectionHandler在web.config中增加自定义配置,然后看到有回复说IConfigurationSectionHandler在2.0时代被弃用了,推荐使用ConfigurationSection,不敢怠慢,赶紧看看ConfigurationSecion是如何使用的。 1. 实现目的 我希望在web.config中,配置网站信息,管理员信息,和用户信息(当然这个配置有点不切实际了,这里只是为了演示),所以,我希望按下面的格式做配. 阅读全文

posted @ 2013-08-27 11:26 freeliver54 阅读(291) 评论(1) 推荐(0)

[转].net自定义configSections的5个示例
摘要:本文转自:http://www.yongfa365.com/item/configuration-configSections-SingleTagSectionHandler-DictionarySectionHandler-NameValueSectionHandler.html view plaincopy to clipboardprint?using System;using Syste... 阅读全文

posted @ 2013-08-27 10:00 freeliver54 阅读(368) 评论(0) 推荐(0)

[转]Microsoft Solutions Framework (MSF) Overview
摘要:本文转自:http://msdn.microsoft.com/zh-CN/library/jj161047(v=vs.120).aspx[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]The Microsoft Solutions Framework (MSF) is an adaptable approach for successfully delivering technology 阅读全文

posted @ 2013-08-27 08:52 freeliver54 阅读(461) 评论(0) 推荐(0)

[转]How to convert IP address to country name
摘要:本文转自:http://www.codeproject.com/Articles/28363/How-to-convert-IP-address-to-country-nameDownload source code - 1.11 MBHow to retrieve a visitor's IP addressEvery visitor to your site or web application has an IP address. It is quite handy to be able to get that address. It can be used for securi 阅读全文

posted @ 2013-08-27 08:48 freeliver54 阅读(1070) 评论(0) 推荐(0)

VB.net 字符串 分割 及 重新倒序组装
摘要:''' ''' split with ">>>>" , and inverted order ''' ''' 123>>>>abc>>>>456 ''' 456 > abc > 123 ''' Protected Function transGroupNamePath(ByVal groupNamePath As String) As String 阅读全文

posted @ 2013-08-21 14:40 freeliver54 阅读(1757) 评论(0) 推荐(0)

[转]设置背景图自适应大小
摘要:转自:http://wyz.67ge.com/css-autosize-background-image/突然有人问我这个问题,说网上CSS filter的方法在非IE浏览器下不奏效。思考之后,问题之外让我感慨万千啊,很多我们所谓的难题,都会随着时代的发展迎刃而解,或被新的问题所取代。当CSS背景图片拉伸这个问题产生时,CSS3也只是浮云....对于IE而言网上常见的方法是使用CSS滤镜,但那时Firefox还小,Chrome还没出生,IE称霸天下....。但如今,我们用三四行简短的代码就能实现全浏览器兼容的方法:[css].bg{ background:url(http://wyz.67ge 阅读全文

posted @ 2013-08-21 14:39 freeliver54 阅读(730) 评论(0) 推荐(0)

vb.net Linq 筛选(像 select distinct) DateTable 日期数据中的年份
摘要:Private Sub initDDLByYear(ByVal dt As DataTable) ddlByYear.Items.Clear() ddlByYear.Items.Add(New ListItem(GetGlobalResourceObject("Resource1", "All"), "0")) If Not dt Is Nothing Then Dim years = (From r In dt.AsEnumerable Select DateTime.Parse(r... 阅读全文

posted @ 2013-08-19 13:53 freeliver54 阅读(2318) 评论(0) 推荐(0)

MasterPage 变化了的 ClientID ctl00_
摘要:在母版页的服务器端控件 其客户端ID 有时候是多变的 会对javascript jquery的内容获取 造成困扰比如一个控件: 比如在某些开发环境下 MainContent_lblNavPathMenu而在某些发布部署到IIS的环境下 ctl00_MainContent_lblNavPathMenu为了使ClientID 可控 可以使用ClientIDMode 属性设置注意<asp:ContentPlaceHolder ID="MainContent"的设置 会对其下内容页面的控件ID产生影响 阅读全文

posted @ 2013-08-14 11:04 freeliver54 阅读(607) 评论(0) 推荐(0)

vb.net 使用 Regex Replace 正则 替换 Html字串的table中tbody第一个tr下的td为th
摘要:本次示例效果如下:TextBox1中输入如下字符串:12111a2b343c4d点击按钮, 转换第一个tr下面的td为tr 将TextBox1中的table中第一个tr下面的td 转换成th ,将结果显示在TextBox2中12111a2b343c4d转换第一个tr下面的tr为td 将TextBox2中的table中第一个tr下面的th 转换成td ,将结果显示在TextBox3中12111a2b343c4d相关代码如下:Imports System.Text.RegularExpressions Public Class Form1 Private Sub Button1_Click(... 阅读全文

posted @ 2013-08-12 16:22 freeliver54 阅读(3936) 评论(0) 推荐(0)

[转].NET进阶系列之一:C#正则表达式整理备忘
摘要:本文转自:http://www.cnblogs.com/KissKnife/archive/2008/03/23/1118423.html有一段时间,正则表达式学习很火热很潮流,当时在CSDN一天就能看到好几个正则表达式的帖子,那段时间借助论坛以及Wrox Press出版的《C#字符串和正则表达式参考手册》学习了一些基础的知识,同时也为我在CSDN大概赚了1000分,今天想起来,去找《C#字符串和正则表达式参考手册》时,已经不知所踪了。现在用到正则的时候也比较少,把以前的笔记等整理一下,以志不忘。(1)“@”符号 符下两ows表研究室的火热,当晨在“@”虽然并非C#正则表达式的“成员”,但是它 阅读全文

posted @ 2013-08-06 18:18 freeliver54 阅读(334) 评论(0) 推荐(0)

[转]Using Replacement Strings with Regex.Replace
摘要:本文转自:http://www.knowdotnet.com/articles/regereplacementstrings.htmlThe String.Replace function has been a valuable tool for years, allowing programmers to change strings by replacing a specific substring with another substring. While this is usually enough, the Regex.Replace function goes a step (o. 阅读全文

posted @ 2013-08-06 14:01 freeliver54 阅读(357) 评论(0) 推荐(0)

导航