Archive for the ‘工作’ Category

读取SharePoint的SMTP设置, 发送邮件 »

private static String GetSmtpHost() { SPOutboundMailServiceInstance instance = SPContext.Current.Site.WebApplication.OutboundMailServiceInstance; if (instance != null) { return instance.Server.Address; } instance = SPAdministrationWebApplication.Local.OutboundMailServiceInstance; if (instance != null) { return instance.Server.Addres

判断是否一个SharePoint Publishing页处于编辑模式 »

… 并且避免 ASP.NET 验证控件错误: This page contains content or formatting that is not valid. You can find more information in the affected sections. or Input string was not in a correct format. 当创建一个WebPart来显示包含验证控件的表单时, ASP.NET 验证控件会阻止你签入和发布当前的Publishing页面. 解决方案: Check if the web part is in edit or design mode and only add the validator i

Clear upload file input field with javascript (JQuery) »

<script language="javascript" src="jquery-1.3.2.min.js" type="text/javascript"> </script> <script language="javascript"> function example_reset_html(id) { $('#'+id).html($('#'+id).html()); } </script> <form> <div style="float: left;" id="example_file"><input type="file" /></div> <input t

How to get SharePoint 2007 SPList Forms Url »

String formUrl = String.Format(CultureInfo.InvariantCulture, "{0}/{1}?id={2}", SPContext.Current.Web.Url, SPContext.Current.Web.Lists.Forms.Url, item.Id); 来源: http://www.myrocode.com/post/2009/03/20/How-get-SharePoint-2007-SpListItem-DispForm-Url.aspx

Single File PHP Gallery 4.0.0 »

给大家推荐一款网络照片管理工具: Single File PHP Gallery. 主页是: http://sye.dk/sfpg/. 顾名思义, 这是一款由PHP编写的单文件图片管理工具. 使用和部署及其简单, 只需要将index.php拷贝到图片目录即可. 你可以按照名称或文件扩展名自由决定需要显示(或屏蔽)的文件夹或文件. 我做了一些翻译和改动, 用来支持中文相册应用. 点击这里(Single File PHP Gallery 4.0.0)下载中文版.

开始学习MVC架构 »

很久之前的一次北京之行, 开始接触并关注这个asp.net项目,但是一直没有花时间和精力来研究学习它。公司的最近几个项目中都或多或少应用了一些新的技术,所以我想现在是时候作点研究工作了,争取能在以后的项目中推广开来。 MVC 主页: http://asp.net/mvc 几分钟前,看到的新文章:ASP.NET MVC V2 Preview 1 Released 另外的一些动力来源:Should ASP.NET Developers Learn ASP.NET MVC?

如何将Bing的每日背景图像变成Windows 7桌面 »

By using the code below, you can create a live daily updating bing theme. To create the theme, 1st copy and paste the code below in notepad and save it as "Bing.theme". You can click the link Bing.theme to download the theme file. DisplayName=Bing Interval=1800000 Shuffle=1 RssFeed=http://feeds.feedburner.com/bingimages TileWall

Export to Excel in SharePoint Application Page doesn »

The cause for this behavior is that there is a flag (named _spFormOnSubmitCalled) in SharePoint which prevents double form submition. This flag is set when the form is submitted and clear when the response is received. However when exporting the response is redirected and the page is not updated, thus the flag is not cleared and page's postbacks

软件的未来 »

(一) 小满所在的公司是一家做业务管理系统的软件公司。近些年,管理软件市场每况愈下。他们内部也有一些声音,有人说要坚持做下去,要做精要做深,管理要到位,管理软件一样也有大前途;而另外一些人则认为:在而今眼目下,继续做管理软件就等于是等死。他们以前做过很多电子政务方面的单子,结果发现,技术算个屁。辛辛苦苦白忙活了一年,赚不了几个钱。说一千,道一万:体制的成本太重,哪里是做软件,根本就是在做关系! 所以,有人就说:要不,我们往互联网靠靠,做一个网站试试看?nnd,好多互联网公司一周的利润,都抵得上我们一年的利润。我们不能再等了。 反对的人说:做管理软件是等死,做互联网就是找死。能说改就改吗?做一个网站,开发很容易。但是,推广呢?哪得烧多少钱? 公说公有理,婆说婆有理。公司

 Page 2 of 14 « 1  2  3  4  5 » ...  Last »