- 博客(22)
- 收藏
- 关注
转载 StringSplitOptions.RemoveEmptyEntries
string test = "程$晓$"; //数组长度为2 temp[0]="程" temp[1]="晓"; string[] temp = test.Split(new string[] { "$" }, StringSplitOptions.RemoveEmptyEntries); //数组长度为3 temp[0]="程" temp[1]=...
2012-06-13 16:33:00
581
转载 datatable.importRow(dataRow)什么意思
就是把指定的数据行导入到表中,不改变该行的状态;DataRow的状态有 Added,Deleted,Modified,UnModified等;ImportRow主要用于把从属于其他DataTable的DataRow,加入到你指定的另一个DataTable中。转载于:https://www.cnblogs.com/liangyu/articles/2546636.html...
2012-06-12 17:20:00
883
转载 top.location.href和localtion.href有什么不同
top.location.href=”url” 在顶层页面打开url(跳出框架) self.location.href=”url” 仅在本页面打开url地址 parent.location.href=”url” 在父窗口打开Url地址 this.location.href=”url” 用法和self的用法一致 ...
2012-06-01 15:47:00
334
转载 读取webconfig里面的appSetting和connectionString
<appSettings> <add key="SiteURL" value="http://moss2007:7000" /> <add key="WebURL" value="" /> </appSettings>在页面读取:private string siteUrl = ConfigurationManag...
2012-05-15 14:29:00
131
转载 FormsAuthentication.SignOut();
FormsAuthentication.SignOut 方法 从浏览器删除 Forms 身份验证票证。 命名空间:System.Web.Security程序集:System.Web(在 system.web.dll 中)转载于:https://www.cnblogs.com/liangyu/articles/2501514.html...
2012-05-15 14:01:00
211
转载 SPField和SPFieldMultiChoice的用法
单选: SPFieldChoice s = list.Fields["案例所属"] as SPFieldChoice; foreach (string c in s.Choices) { ddlTo.Items.Add(c); //用于下拉菜单 } 多选:...
2012-05-08 13:48:00
253
转载 NameValueCollection详解
1.NameValueCollection类集合是基于 NameObjectCollectionBase 类。但与 NameObjectCollectionBase 不同,该类在一个键下存储多个字符串值(就是键相同,值就连接起来如下例子)。该类可用于标头、查询字符串和窗体数据。每个元素都是一个键/值对。NameValueCollection 的容量是 NameValueCollec...
2012-05-07 14:21:00
134
转载 人生需要放下六样东西
放下压力—累与不累,取决于自己的心态 心灵的房间,不打扫就会落满灰尘。蒙尘的心,会变得灰色和迷茫。我们每天都要经历很多事情,开心的,不开心的,都在心里安家落户。心里的事情一多,就会变得杂乱无序,然后心也跟着乱起来。有些痛苦的情绪和不愉快的记忆,如果充斥在心里,就会使人委靡不振。所以,扫地除尘,能够使黯然的心变得亮堂;把事情理清楚,才能告别烦乱;把一些无谓的痛苦扔掉,快乐就有了更多更大的...
2012-04-28 10:27:00
100
转载 复制表的定义
把一个表里面的字段,数据类型复制到另外一个表中,另外一个表不需要新建1)select * into dept_2from deptwhere 1=0这个的话会把表dept复制到dept_2,但是不会复制表dept里面的数据2)select * into dept_2 from deptwhere 1=1等同于select * into dept_2...
2012-04-26 16:28:00
165
转载 把一个表里面的数据复制到另外一个表里面
前提:两个表里面的字段名称相同,数据类型相同insert into dept_east(depnto,depname,loc)select depnto,depname,loc from dept后面还可以加where loc in('aa')转载于:https://www.cnblogs.com/liangyu/articles/2471628.html...
2012-04-26 16:27:00
145
转载 报Use of unassigned local variable 'writer'错误
一般报这个错误是由于未初始化,把这个writer给初始化了就可以了。转载于:https://www.cnblogs.com/liangyu/articles/2469875.html
2012-04-25 15:08:00
559
转载 this.Context.Request.Url.Segments
Segments属性将会返回一个以“/”为分隔的URL数组,这个URL数组同时也是来自absolute path例如:Absolute URIhttp://www.contoso.com/Chapters/Chapter1/Sections/Section1.htmAbsolute path/Chapters/Chapter1/Sections/Section1.ht...
2012-04-11 10:21:00
213
转载 <td>标签中valign="middle"与align="center"区别
valign 调格子中内容的垂向(上下)位置,valign=“top“上面, valign=“middle“中间,或 valign=“bottom 下面。align 调格子中内容的(左右)横向位置,align="LEFT“ 左边对齐, align="CENTER“中间 或 align="RIGHT“右边对齐。转载于:https://www.cnblogs.com/liangyu/a...
2012-04-10 17:24:00
677
转载 SharePoint中DateTimeControl
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>...
2012-04-06 15:15:00
171
转载 C#中Trim(),TrimStart(),TrimEnd()的用法
http://www.360doc.com/content/10/1015/08/3911098_61117227.shtml转载于:https://www.cnblogs.com/liangyu/articles/2423038.html
2012-03-29 11:34:00
116
转载 电脑中w键不能应用
解决的方案是:按几下Alt键,然后在按w键就可以了。转载于:https://www.cnblogs.com/liangyu/articles/2421723.html
2012-03-28 18:03:00
180
转载 当webpart出现错误的时候
如果不知道哪个webpart出错,就在页面网站上写?contents=1,这样就可以看到是哪个webpart出现错误转载于:https://www.cnblogs.com/liangyu/articles/2285111.html
2011-12-12 17:27:00
77
转载 请求“System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0....类型的权限已失败。”...
请求“System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”类型的权限已失败。”解决方法:http://blog.youkuaiyun.com/qq546937127/article/details/430567...
2011-12-12 17:25:00
640
转载 未能提取此解决方案中的 cab 文件。
解决方案 1)Wsp文件中有文件名是中文乱码,去掉就没事了 2)http://msdn.microsoft.com/zh-cn/library/ee330922.aspx转载于:https://www.cnblogs.com/liangyu/articles/2285102.html...
2011-12-12 17:23:00
393
转载 sharepoint中库读取字段
/// <summary> /// 得到图片新闻的类型 /// </summary> /// <returns></returns> public List<string> GetAllTypes() { List<...
2011-12-12 17:20:00
70
转载 部署步骤“激活功能”中出现错误: 无法启动计算机“WS-CHUANM-01”上的服务 SPUserCodeV4。...
解决方案:http://hi.baidu.com/sygwin/blog/item/4cd09e4507679f28869473be.html转载于:https://www.cnblogs.com/liangyu/articles/2282538.html
2011-12-09 17:31:00
127
转载 Treeview中含有CheckBox
实现代码:http://files.cnblogs.com/liangyu/TreeViewOfCheckbox.rar转载于:https://www.cnblogs.com/liangyu/articles/2282423.html
2011-12-09 16:42:00
114
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人