随笔分类 -  C#

Add javascript to the client
摘要:Show how to add script to the client in aspx file. /// <param name="rbl">RadioButtonList to apply script to</param>/// <param name="page">The Page the script is going to be appended ... 阅读全文

posted @ 2007-08-30 18:34 Wade 阅读(417) 评论(0) 推荐(0)

Refresh related controls' value when data changed using DataBind in Winform
摘要:Goal:Use a ComboBox to select an item, andsave the selected item's value to some textboxes. each control is using databinding.Problems:1. set control's value when comboBox changed, after the comboBox ... 阅读全文

posted @ 2007-08-29 10:31 Wade 阅读(789) 评论(0) 推荐(0)

Use AbstractTransactionalSpringContextTests to rollback NUnit test case automatically
摘要:I have two test cases: UserTest and CustomerTest, both of them extend the AbstractTransactionalSpringContextTests, they are using the same config file, so I wrote a BaseSpringTest class: 1: public... 阅读全文

posted @ 2007-08-20 16:12 Wade 阅读(2816) 评论(1) 推荐(0)

Parse and format date in c#
摘要:when use '/' in pattern, must use '\' to escape it,when get formatted date string, use the following method: datefrom.ToString("yyyy-MM-dd") 1: DateTime datefrom; 2: try 3: { 4: da... 阅读全文

posted @ 2007-08-17 15:18 Wade 阅读(631) 评论(0) 推荐(0)

导航