2009年3月7日
摘要: 这些网站是从新东方尹圆圆老师的博客上找来的,希望大家好好利用: 1. http://www.texun.cn/addrso/index.htm 特训网:English Learning Websites 2. http://broadcast-live.com/ Live Radio and TV from Around the World 3. http://www.nxenglish.com/... 阅读全文
posted @ 2009-03-07 21:10 kaiF 阅读(1707) 评论(0) 推荐(0)
  2009年1月22日
摘要: Calendar1为日历控件,下面包含了Calendar1的样式,OnSelectionChanged()选定日期事件以及OnVisibleMonthChanged()选择月份事件。 实现的关键是让一个隐藏层包含Calendar控件,点击textbox控件才让该显示该隐藏层。此处用到了ajax控件UpdatePanel. .aspx页面文件 CodeCode highlighting pro... 阅读全文
posted @ 2009-01-22 22:20 kaiF 阅读(14403) 评论(5) 推荐(1)
摘要: 此下拉框是使用.net控件的下拉框,后台实现数据库访问,用了ajax控件来实现局部刷新,如不需要可以不用。 其中实现下拉框的选定事件OnSelectedIndexChanged()是关键,添加此事件的必须将AutoPostBack设为true。 页面文件.aspx CodeCode highlighting produced by Actipro CodeHighlighter (freewa... 阅读全文
posted @ 2009-01-22 21:47 kaiF 阅读(1534) 评论(1) 推荐(0)
摘要: 第一个文件是businessobjctforView.cst,生成C#实体类,此脚本需要引用第二个文件CommonUtility.cs。需将两个文件放在同一目录中。 using System;using System.Collections;using System.Collections.Generic;using System.Data; ... 阅读全文
posted @ 2009-01-22 02:06 kaiF 阅读(3038) 评论(3) 推荐(0)
  2008年12月22日
摘要: Substring Time limit: 1 second(s) Memory limit: 32768 KBytes Total Submit : 1767 Accepted Submit : 548 ProblemDr lee cuts a string S into N pieces,s[1],…,s[N]. Now, Dr lee gives you these... 阅读全文
posted @ 2008-12-22 10:52 kaiF 阅读(789) 评论(1) 推荐(0)
  2008年12月12日
摘要: ProblemAlice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: "Let's just use a very simple code: We'll assign `A' the code word 1, `B' will ... 阅读全文
posted @ 2008-12-12 13:36 kaiF 阅读(622) 评论(1) 推荐(0)
摘要: A-B Time limit: 1 second(s) Memory limit: 32768 KBytes ProblemInput A and B, output A-B InputInput two values, A and B. OutputOutput the result of A-B. Sample Input2 1 Sample Output1 源码Co... 阅读全文
posted @ 2008-12-12 13:29 kaiF 阅读(253) 评论(0) 推荐(0)
摘要: foreach (Control txtobj in this.Page.Controls){ if (txtobj.GetType().Name == "TextBox") { // ((TextBox)txtobj).Text = "";//这是第一种方法赋值,第二种在下面 TextBox tb = new TextBox(); ... 阅读全文
posted @ 2008-12-12 12:29 kaiF 阅读(2531) 评论(3) 推荐(0)