ASP.NET(C#)

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2005年3月3日

摘要: tuxiang 阅读全文
posted @ 2005-03-03 16:24 battlerstar 阅读(448) 评论(0) 推荐(0) 编辑

摘要: c:\xmlPerson.xml 文件 zhanshan Doctor cs: XmlDocument doc = new XmlDocument(); doc.Load("c:\\xmlPerson.xml"); MessageBox.Show(doc.DocumentElement.Name); Messag... 阅读全文
posted @ 2005-03-03 16:10 battlerstar 阅读(1470) 评论(1) 推荐(0) 编辑

摘要: 验证数据输入 Regex rx = new Regex(@"^\d{5}-\d{4}$"); string zip = "90210-1234"; Match m = rx.Match(zip); if (m.Success) { MessageBox.Show("Numerically, " + zip + l " is a valid zip code."); } 阅读全文
posted @ 2005-03-03 15:27 battlerstar 阅读(478) 评论(0) 推荐(0) 编辑

摘要: 举例:计算未来的某一天 DateTime dt = DateTime.Now.Date; DateTime dtChristmas = new DateTime(dt.Year, 12, 25); TimeSpan daysTillChristmas = dtChristmas.Subtract(dt); lMessageBox.Show("There are " + d... 阅读全文
posted @ 2005-03-03 15:23 battlerstar 阅读(411) 评论(0) 推荐(0) 编辑

2005年3月2日

摘要: http://www.cnblogs.com/tonyqus/archive/2005/02.html 技术网站:http://blog.blueidea.com/category/dotnet/ 阅读全文
posted @ 2005-03-02 16:21 battlerstar 阅读(368) 评论(0) 推荐(0) 编辑

摘要: 1.net 里面的三层结构. 数据访问层,业务层,表示层(可能叫法上有些不同) 2.NET内值对象. .NET的公共类型系统CTS可以分为两大类,引用类型和值类型,引用类型分配在堆中,值类型分配在栈中; 对于值类型的变量或常量我们一般不称之为对象,题目竟然将其称做值对象,可见出题的人本身就概念不清;设计上,对象的概念是伴随类而出现的,类的实例我们才称之为对象 3.一个页面调用另一... 阅读全文
posted @ 2005-03-02 13:11 battlerstar 阅读(1107) 评论(0) 推荐(0) 编辑

2005年2月28日

摘要: 在pageload事件下 Response.ContenType = "Application/pdf"; string FilePath = MapPath("acrobat.paf"); Response.WriteFile(FilePath); Response.End(); 如果为其他文件类型 ContenType = Text/html ... 阅读全文
posted @ 2005-02-28 09:16 battlerstar 阅读(443) 评论(0) 推荐(0) 编辑

2005年2月23日

摘要: 创建示例 Excel 工作表 1. 启动 Microsoft Excel,然后创建一个新的工作表。 2. 将以下信息添加到新工作表中以创建一个简单的 Excel 数据库: ... 阅读全文
posted @ 2005-02-23 09:00 battlerstar 阅读(1409) 评论(0) 推荐(0) 编辑

2005年1月29日

摘要: 关于datagrid的打印 http://www.chinaaspx.com/article/csharp/295.htm C#中为DataGrid添加下拉列表框 http://www.cnblogs.com/icesnaker/archive/2004/09/21/45015.aspx DataGrid也玩分页 http://dev.csdn.net/article/32/... 阅读全文
posted @ 2005-01-29 13:01 battlerstar 阅读(2536) 评论(0) 推荐(0) 编辑

2005年1月27日

摘要: // 在此处放置用户代码以初始化页面 //计数器初始化为0 int iCount=0; //存放计数器的文件 string strPath=Server.MapPath("count.txt"); //准备打开文件 StreamReader ReadFile; try { //打开文件 ReadFile=Fi... 阅读全文
posted @ 2005-01-27 16:27 battlerstar 阅读(533) 评论(0) 推荐(0) 编辑