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

随笔分类 -  Presentation

Presentation UI
摘要:转自: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 烟雨客 阅读(198) 评论(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 烟雨客 阅读(260) 评论(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 烟雨客 阅读(169) 评论(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 烟雨客 阅读(164) 评论(0) 推荐(0)
摘要:InfoPath这一工具我们使用了一年多了,目前已经实现将InfoPath表单web化,并且自己做了一个承载web版的infoPath表单的eFormServer.以前我们认为纸档e化,就是将纸制的格式转成电子化,但实质这与infoPath的设计初衷相违。因为InfoPath在设计时,有两种类型的View. 一种我们称为Input View.另一种称为Print View. 当去收集用户的数据时,我们应该使用input view.在这种view中,设计时应该尽量考量用户输入的便利性,而不能生搬纸档格式。但print view完全可以套用纸档格式。因为现在已有tools可以快速将word, e. 阅读全文
posted @ 2012-02-15 11:50 烟雨客 阅读(231) 评论(0) 推荐(0)
摘要:今天做了一个简单的asp.net页面。动态创建了asp:radioButton, 在Page_Load事件中,当isPostBack为false时,才去创建,结果当页面提交时(PostBack),原来在界面显示的radioButton消失了。初步想是VeiwState的问题。后来找KB,才知道,这种动态创建control的时候,页面提交,是需要自已写代码重新创建control tree。跟ViewState没有关系。ViewState是对control本身的状态维护,不是对control tree的状态维护。后面用asp:RadioButtonList来代替radioButton.奖Radio 阅读全文
posted @ 2012-01-01 17:44 烟雨客 阅读(469) 评论(0) 推荐(0)
摘要:I am doing a job. Find IE popup a javascript error: "some variable" is undefined.......I noticed, in javascript if you write like this :hello<script type="text/javascript">if (abc == undefined) document.write("undefied") ;</script>will popup this kind of mes 阅读全文
posted @ 2011-08-14 13:31 烟雨客 阅读(268) 评论(0) 推荐(0)
摘要:I am doing a job which is a web site using infragistic control webgrid to show sth.after i tested at home via IE8, showing script error as below:Webpage error detailsUser Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; 阅读全文
posted @ 2011-08-14 12:23 烟雨客 阅读(470) 评论(0) 推荐(0)
摘要:今天在做案子时候遇到用gridView控件时,想在里面有一个hyperlink,点击后弹出窗口再显示另外页面。可是在用DataNavigateUrlFormatString属性时,发现<hyperlinkFiled DataNavigateUrlFormatString="javascript:window.open('abc.aspx?...."这样写后,原来可以点击的hyperlink变成不可点击了。上网找有文章说是这是微软的Bug.在DataNavigateUrlFormatString中不能有“:”。网上给出的解决办法有两种:一种是将上述代码用item 阅读全文
posted @ 2011-07-31 14:42 烟雨客 阅读(981) 评论(0) 推荐(0)
摘要:Q:在开发web-browser based的infopath表单是否可以弹出messageBox?A: infoPath本身没有这样的函数,虽然有MessageBox.Show(),但这个函数只用于windows desktop app.在web中可以用this.InfoViews.SwitchView()来模拟messagebox和confirm窗口Q:在web browser based infopath表单handle submit事件为什么不work?A:只要在form submit option中选择了允许送出表单,并且是以编程方式送出,那么在页面上有submit按钮就可以击活su 阅读全文
posted @ 2011-05-20 14:27 烟雨客 阅读(217) 评论(0) 推荐(0)
摘要:You can use Help.ShowHelp(). also you can use helpProvider get parameter such as helpProvider.getHelpKeyword and then call browser to pass a URL to it. private void ExecUrl(string url) { ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe"); startInfo.WindowStyle = ProcessWindo 阅读全文
posted @ 2011-05-08 00:08 烟雨客 阅读(233) 评论(0) 推荐(0)
摘要:I am doing the project, a toolstrip on a form, and this toolstrip has a image background. but, I find the seperator is fit on toolstrip's height when toolstrip's dock = full. looks not good.to control seperator as text's height, you should set toolstrip's padding value. padding is sp 阅读全文
posted @ 2011-05-07 22:27 烟雨客 阅读(185) 评论(0) 推荐(0)
摘要:In our project, we noticed, when export tif from reporting service, some filed's values missing, but shwoiing in reporting service is OK. after detected, we are sure, it is because the filed is too lo... 阅读全文
posted @ 2010-07-17 08:28 烟雨客 阅读(183) 评论(0) 推荐(0)
摘要:Today, we met a problem: everything is ok after I convert vs2003 to vs2008 except when execute a one page, the error is : Ambiguous match found. andrunTimeparser indicatesthis erroroccurs at <@ <... 阅读全文
posted @ 2010-06-01 12:58 烟雨客 阅读(373) 评论(0) 推荐(0)
摘要:今天在將reportviewer嵌入到windows form中,一運行,偶然在它沒有載入任何報表前,右點了鼠標,結果在調試狀態下就跳到的application.run(reporting)這里停住了,并顯示Invalid URI: The hostname could not be parsed.這個錯誤信息。后查找原來是在設計時將reportviewer的一個ProcessModle屬性設置成... 阅读全文
posted @ 2007-11-01 21:02 烟雨客 阅读(4424) 评论(1) 推荐(0)
摘要:在做專案的時候,前几天release一個windows的版本可以工作得很好,但今天release出去的卻出現在致命錯誤,根本無法啟動,從事件管理器中把錯誤信息摘出如下: 事件類型: 錯誤 事件來源: .NET Runtime 2.0 Error Reporting 事件類別目錄: 無 事件識別碼: 5000 日期: 2007/10/29 時間: 下午 05:31:59 使用者: N/A 電腦... 阅读全文
posted @ 2007-10-29 19:34 烟雨客 阅读(630) 评论(0) 推荐(0)
摘要:做了一個Windows.Form.UserControl, 然后試圖將它嵌入到IE中,不管怎么嵌在IE里只顯示一個TextBox, 但卻不是我設計的Control畫面,在網上找的例子也與我做的無差,后來發現是由于寫class的標簽classid后面用的是單引號而用的不是“,將它改到雙引號后就成功顯示了不work的代碼:hello mmmmmmmmmmmmmm Work的代碼:hello m... 阅读全文
posted @ 2007-08-03 09:25 烟雨客 阅读(199) 评论(0) 推荐(0)
摘要:在做案子的時候,用infragistics的Tab控件,當有多個Tab鉗套的時候,performance不太好。我們部門內的小春同志經過努力發現了一個方法。用異法方法設定一下Tab的配置即產生了高速顯示的效果了。原來的設定: 改過以后的設定" 阅读全文
posted @ 2007-02-14 16:59 烟雨客 阅读(455) 评论(0) 推荐(0)