非淡泊无以明志,非宁静无以致远 -心静如止水,动于静

10 2012 档案

摘要:在做项目的时候,有一个场景,当用户切换不同选项时(radio button),repeating section会随着切换而变换两种状态1:删除所有item. 2.新增而且只新增一个item. 对于删除比较容易,但对于从没有任何一个item状态下,新增一个item,来讲,在网上找了很久,也没有找到合适的解决办法。经过几次试验,终于有了一个比较理想的解决方案。即用临时变量存放section item的xml。然后当状态切换时,用代码AppendChild(xml)来动态新增一个item.infopath form的dataSource如下结构:-myFields |-group1 |-grou. 阅读全文
posted @ 2012-10-31 13:22 烟雨客 阅读(284) 评论(0) 推荐(0) 编辑
摘要:转自:http://weblogs.asp.net/rajbk/archive/2006/08/14/GridView-DropDownList-Pager.aThis post shows you how to add a custom DropDownlist pager and pager buttons to the GridView as shown below:Unlike the behavior of the default pager buttons, these buttons get disabled instead of being hidden (depending. 阅读全文
posted @ 2012-10-19 15:45 烟雨客 阅读(187) 评论(0) 推荐(0) 编辑
摘要:转自:http://weblogs.asp.net/rajbk/archive/2006/03/02/How-to-render-client-report-definition-files-_28002E00_rdlc_2900_-directly-to-the-Response-stream-without-preview.aNote: I cover this technique in a more recent post here : Rendering an RDLC directly to the Response stream in ASP.NET MVC A ReportVi. 阅读全文
posted @ 2012-10-19 15:38 烟雨客 阅读(252) 评论(0) 推荐(0) 编辑
摘要:转自:http://weblogs.asp.net/rajbk/pages/431322.aspx。 此人其它博文也值得学习VS 2005 RTM (.net framework 2.0)Target: Intermediate Developers Consider you have an XML file like this: <Employees> <Employee FirstName="Tom" LastName="Jones" CustomerId="1" /> <Employee First 阅读全文
posted @ 2012-10-19 13:50 烟雨客 阅读(162) 评论(0) 推荐(0) 编辑
摘要:事情虽然小,但还是值得保留http://www.ganshani.com/2008/04/10/only-numbers-in-textbox/Requirement: TextBox in C# should accept only numbers as input.Solution:Raise an event KeyPress and paste following line of code.private void txtInput_KeyPress(object sender, KeyPressEventArgs e){ if (!Char.IsNumber(e.KeyChar)). 阅读全文
posted @ 2012-10-18 11:16 烟雨客 阅读(157) 评论(0) 推荐(0) 编辑