
Tips and Resources
jameszhouhvs
WinForm > ASP.NET > MVC > Silverlight > WP > Xamarin > .NET Core > .NET
展开
-
Two informative resources: Tooltips and CSS tips
I got two resources from a colleague - an amazing web designer (I was shocked by some UI things he have done in some projects and in our home page http://www.ssw.com.au)1. Tooltips with AJAX, JavaScr原创 2007-08-01 21:55:00 · 1232 阅读 · 0 评论 -
Expression Web - .NET开发者的Web UI工具
Expression Web 是新的FrontPage,而且支持.NET 2.0中的大部分特性。你可以在Expression Web中拖拽ASP.NET 2.0 控件并即时看到其界面效果。其对CSS的支持,也让不熟悉CSS的开发人员能过通过可视化的方式管理CSS - http://www.microsoft.com/expression/products/overview.aspx?key=web原创 2007-08-14 12:34:00 · 2137 阅读 · 0 评论 -
Hot Tip - SQL 报表服务(Reporting Services) RDL
http://msdn2.microsoft.com/zh-cn/library/bb395166.aspx上面的地址中列举了一些SQL 2005报表服务的一些Tips,值得一看。一个常见的使用技巧是,如果报表中的一些element不支持直接引用数据源field的时候,可以通过一个Textbox"过渡"一下来实现,因为Textbox的值可以通过ReportItems!TextBoxName.val原创 2007-08-17 15:21:00 · 1843 阅读 · 0 评论 -
DNN - skin quick reference
1. This is the same reference you can find in the DotNetNuke Skinning document but much easier to read.2. DotNetNuke CSS hierarchy and default styles[UPDATE 2007-8-27]: SolPartMenu is supposed to原创 2007-08-24 16:49:00 · 1769 阅读 · 0 评论 -
Tips - Web UI 资源索引
Basic (CSS,Javascript,AJAX...) - http://www.realsoftwaredevelopment.com/2007/08/ultimate-web-de.htmlAdvanced CSS - http://www.smashingmagazine.com/2007/01/19/53-css-techniques-you-couldnt-live-withou原创 2007-08-28 14:28:00 · 1635 阅读 · 1 评论 -
Reporting Services Tip - 怎样隐藏Matrix中的列并且在Sub Total中显示该列的汇总
在一个Matrix中如何将某列隐藏,但是还能在汇总中计算出该列的汇总呢?Inscope函数可以帮助实现这一点。将想要隐藏的那一列对应的Text属性设置如下,其中Matrix1_Owner 是 Row Group的名字。 效果如下,数字列中的内容仅在最后一行的汇总中出现。原创 2007-08-24 11:27:00 · 2778 阅读 · 0 评论 -
Tip - SQL报表 - 按每N行记录将报表分页
报表可以通过设置其Layout的大小来控制分页,但是如何更精确的按照每N行记录对报表分页?see - http://msdn2.microsoft.com/en-us/library/ms157328.aspxPage BreaksIn some reports, you may want to place a page break at the end of a specified number原创 2007-08-29 11:11:00 · 1827 阅读 · 0 评论 -
Web Service调用Nhibernate数据访问异常:xx cannot be serialized because it does not have a parameterless constructor
web servcie调用nHibernate的数据访问代码读取数据库并生成一个实体实例时,得到了如下异常信息: An exception of type System.Web.Services.Protocols.SoapException occurred in System.Web.Services.dll but was not handled in user codeAddition原创 2007-10-22 17:47:00 · 3402 阅读 · 0 评论 -
Hot Tips: CSS 资源库 / CSS利器 - X光透视
CSS 资源库 - http://www.dynamicdrive.com/style/CSS X光透视 - http://westciv.com/xray/原创 2007-11-12 11:55:00 · 1679 阅读 · 0 评论 -
Tip - SQL报表打印的空白页问题
SQL报表中一个常见问题是:在HTML格式中报表看起来还不错,但是打印出来(或者在PDF格式中)却发现每一个页面后面都跟着一个空白页。这是因为报表的设计尺寸超过了打印页面的物理尺寸。那么如何设置报表的尺寸适合打印呢?参照如下链接中给出的设置即可:http://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterSQLReportingServices.原创 2007-11-15 11:07:00 · 1751 阅读 · 0 评论 -
Tip: execute ad-hoc JavaScript through eval function
You may know how to use Execute statement to run ad-hoc SQL. (http://msdn2.microsoft.com/en-us/library/ms188332.aspx)Today I got its counterpart in Javascript: eval function(http://msdn2.microsoft.com原创 2007-11-19 12:45:00 · 1517 阅读 · 0 评论 -
.NET 格式字符串速查
.NET编程及SQL报表中常用到数字或者日期的格式转化,那些格式字符总是记不住,索性列出来备查:Standard numeric format strings: http://msdn2.microsoft.com/en-us/library/aa720653.aspxCustom numeric format strings: http://msdn2.microsoft.com/en-us/l原创 2007-12-04 15:24:00 · 1614 阅读 · 0 评论 -
Visual Studio International Pack对汉字的支持
还在重复发明轮子吗?看看微软在汉字方面的新支持:Simplified Chinese Pin-Yin Conversion Library - 支持获取简体中文字符的常用属性比如拼音,多音字,同音字,笔画数。 Traditional Chinese to Simplified Chinese Conversion Library and Add-In Tool - 支持简繁体中文之间的转换. 该组原创 2007-12-05 22:59:00 · 1796 阅读 · 0 评论 -
软件架构师
软件企业中有一个角色叫做软件架构师,不同公司或者不同的环境下,对该职位的定位可能不尽相同。微软首席架构师Ray Ozzie 对自己职位的一些看法,倒是给人很多启发:1. 不管是设计一座桥梁还是一幢大厦,你是在特定的情况下应用各种设计模式2. 在做程序员的时候你要花时间让自己理解各种不同的模式,并能够认知那些设计良好的系统的特性,来提高自己对更高层次抽象的能力。3. 从不同系统中学到的越多,你就越能原创 2007-12-05 15:25:00 · 2825 阅读 · 0 评论 -
Hyper-V: 一台服务器变二百台服务器
微软未来的virtualization技术会带来。。。?来自微软的邮件摘录:Q: My customer has a significant investment of 32-bit servers and wants to know why Hyper-V won’t be developed for Windows Server 2008 32-bit editions.原创 2007-12-06 16:10:00 · 2039 阅读 · 0 评论 -
ASP.NET 2.0 - Control State
Control StateI mentioned earlier that one of the most frustrating aspects of working with server-side controls in ASP.NET 1.x is the all-or-nothing mentality with respect to view state. Behavioral a原创 2008-03-09 16:53:00 · 2176 阅读 · 1 评论 -
北京IDC服务商
公司准备推出中文网站,需要找idc服务商,google到了一个北京服务商列表,有点儿帮助,分享一下:http://www.it.com.cn/f/server/0610/23/295875.htm原创 2007-12-14 11:56:00 · 2084 阅读 · 1 评论 -
ADO.NET 2.0 - New things
New in ADO.NET 2.0:1. DataTableReader A DataTableReader created using DataTable.CreateDataReader will expose the same rows and columns as the DataTable. When a DataTableReader is created from a Data原创 2008-03-16 16:05:00 · 1982 阅读 · 0 评论 -
Visual Studio 工具 - 拼写检查
随着VS2008正式版的发布, Visual Studio Spell Check add-on 也做了升级并支持最新的VS版本,其拼写检查可支持: HTML style comments ASP.NET server side comments: JScript, C# and C++ comments: // C++ style comment原创 2007-12-18 09:34:00 · 6157 阅读 · 0 评论 -
Tip - Web Design Templates & Mockups
I got this useful tip from ScottGus blog, the two websites for web design templates & mockup resources:1. http://www.opensourcetemplates.org/index.php2. http://www.oswd.org/[update 2008-12-30]:3. htt原创 2007-12-21 00:20:00 · 2183 阅读 · 0 评论 -
ASP.NET 2.0 - Validation Groups and Cross-Page Posting
1. Validation Groups In ASP.NET 2.0, there is a new property called the ValidationGroup that can be assigned a string to specify a section. This property exists on the validation controls and on the原创 2008-03-16 17:16:00 · 2012 阅读 · 0 评论 -
Tip - 彻底卸载删除3721(雅虎助手)。快速!
该软件可恶之处不再赘述,其自带的卸载工具根本不能完全卸载。该软件存放在c:/windows/system32/drivers/下的cnsminkp.sys文件是其难以删除的关键,直奔主题--删除步骤:1.找到c:/windows/system32/下的drivers目录,复制一份,比如命名为drivers_good2.删除drivers_good中的cnsminkp.sys文件3.重命名drive原创 2007-12-25 17:45:00 · 3569 阅读 · 2 评论 -
微软认证- 升级之路
If you are an: Then you can earn certification in: By passing: MCAD原创 2008-03-23 17:54:00 · 2043 阅读 · 0 评论 -
Tip - ASP.NET 3.5 Extension resources
Quick Start:http://www.asp.net/downloads/3.5-extensions/Blog:David Ebbo (dev of Dynamic Data) - http://blogs.msdn.com/davidebb/default.aspxMarcin (dev of Dynamic Data) - http://blogs.msdn.com/ma原创 2008-01-07 17:28:00 · 1766 阅读 · 0 评论 -
ASP.NET MVC - 用户验证和权限验证
MVC架构下如何实现登录验证这一常见功能?Troy通过一个Security Controller给出了一种方法: http://www.squaredroot.com/post/2007/12/ASPNet-MVC-Membership-Basics.aspx权限验证的一个方法:http://www.squaredroot.com/post/2008/01/MVC-Authentication-a原创 2008-01-10 16:15:00 · 8599 阅读 · 0 评论 -
ASP.NET MVC - View Engines
NHaml NHaml (pronounced enamel) is a pure .NET implementation of the popular Rails Haml view engine. NHaml is an external DSL for XHTML. It’s primary qualities are it’s simplicity, terseness, perfor原创 2008-01-11 17:42:00 · 2651 阅读 · 0 评论 -
免费图标大集合!
http://www.smashingmagazine.com/2008/03/06/35-really-incredible-free-icon-sets/原创 2008-04-21 11:28:00 · 2178 阅读 · 1 评论 -
SQL 2005 CTE应用 - 月份表
在一个RS报表中需要实现一年内各月份"报价总额"的统计,但是报价表中并不是每个月都有数据,某些月份没有数据,那么需要一个月份表(1-12月)并使用left join来连接报价表。如何用简单等方法生产一个月份表? with MonthList(m)as(select m =1 union allselect m + 1 from MonthList where m )select m from Mo原创 2008-04-29 22:26:00 · 2437 阅读 · 0 评论 -
FormView中下拉框 (DropDownList) 的数据绑定
FormView的 OnDataBound事件的签名为 void FormView_DataBound((object sender, EventArgs e),事件参数中没有提供可供使用的数据源对象。如何将数据源值绑定到某个下拉框选项?ItemTemplate 中使用: DataSourceID="AccessDataSource2" DataTextField="CategoryN原创 2008-05-08 10:41:00 · 4779 阅读 · 0 评论 -
字符串比较 - 末尾空格
今天在修改一个bug是才发现SQL在比较两个字符串时会忽略掉字符串末尾的空格,即 abc 和 abc 是相等的: SELECT true WHERE abc = abc 会返回结果 true.NET中的String.CompareTo同样忽略末尾空格!原创 2008-05-13 16:10:00 · 1811 阅读 · 0 评论 -
Hot Tip - TFS伙伴 - TFS Sidekicks
Today i needed to find the source code of a report which deployed on our report server. Unfortunately, based on the report name from the report server, I could not find which TFS project that the repo原创 2008-09-01 14:32:00 · 3382 阅读 · 1 评论 -
Tip - IIS 7 + Vista + ASP
无法一下子想不起来的事情,最好写下来备查。如何在IIS7 (Vista)下调试ASP:1. 启用ASP2. 配置IIS中的ASP设置3. ASP页面报错时,让IE显示错误信息 3.1设置IE 3.2 执行命令:%windir%/system32/inetsrv/appcmd set config -section:asp -scriptErrorSentToBrowser:tr原创 2008-09-02 19:33:00 · 1468 阅读 · 0 评论 -
MS SQL Reporting Services (报表服务) 2008 Tip - 不再依赖IIS
安装完RS 2008,在IIS中并没有ReportServer / Reports 应用目录 - RS 2008已经不再依赖于IIS: Normal 0 false false false EN-AU ZH-CN X-NONE原创 2008-09-09 15:11:00 · 2799 阅读 · 0 评论 -
RS 2008 + RS 2005 配置管理器问题
在一台已经安装了RS 2005的Vista电脑上安装RS 2008,而且要让两个RS共存。安装SQL 2008时指定的实例名称为SQL2008,安装过程一切顺利,但是运行RS 2008的配置管理器,却无法链接 report server:同事Justing 找到了一个解决办法:http://www.kingjustin.com/post/2008/08/Reporting-Services-20原创 2008-09-09 16:00:00 · 1555 阅读 · 0 评论 -
tip - SQL报表服务 - 使用RunningValue函数计算累积值
报表中有一列为计算列,需计算该列之前所有列的累积和。可以使用RunningValue函数轻松实现: 数据源如下:表达式:效果:原创 2008-09-23 15:57:00 · 2703 阅读 · 0 评论 -
Tip - 32位机可以运行64位虚拟机
因为需要运行一个Exchange 2007的虚拟机,而Exchange 2007要求64位环境。我的电脑是32位的Vista系统,觉得不可能能跑64位的虚机。同事William告诉我 - 完全可能: 只要你的CPU支持VT(virtualization technology) 使用vmware就可以在32位系统上运行64位虚机!一般电脑的CPU默认是将VT禁用的,需要到BIOS中将该选项启用原创 2008-10-17 14:00:00 · 20601 阅读 · 7 评论 -
Tip - Windows用户体验交换设计指南(UX Guides)
Windows User Experience Interaction GuidelinesThe goals for these official Windows User Experience Interaction Guidelines (or "UX Guide" for short) are to:Establish a high quality and consistency base原创 2008-10-16 10:49:00 · 1915 阅读 · 0 评论 -
Tip - 你一定知道System.Web.HttpUtility,你知道还有System.Web.VirtualPathUtility吗
The VirtualPathUtilityclass provides utility methods for common operations involving virtualpaths. For ASP.NET server controls and server code, virtual paths usingthe Web application root operat原创 2008-10-16 17:42:00 · 1779 阅读 · 0 评论 -
Tip - SharePoint - 显示详细的Debug错误信息
今天同事John发了一个hot tip - 如何设置SharePoint,以显示详细的debug信息而不是SharePoint"用户友好"的错误页面(对开发人员不是那么"友好",因为没有详细错误信息) - 来自Neil的blog - Getting "Debug Info" for a Sharepoint error!原创 2008-10-21 09:40:00 · 1911 阅读 · 0 评论 -
SQL2008报表服务 - 没有足够的权限执行该操作
SQL 2008 Reporting Services 安装在Vista/Win2008环境下,访问报表站点会遇到该错误: The permissions granted to user xxxx are insufficient for performing this operation. (rsAccessDenied)可以管理员权限运行IE(右键IE,选择Run As Admini原创 2008-10-13 15:32:00 · 3691 阅读 · 0 评论