学无止境

Life-long learning
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年8月6日

摘要: TB_ClientList SELECT TB_Area.Name AS AreaName, TB_A_Service.Service as ServiceRoom, TB_ClientList.* , TB_ModuleType.title as ModuleType, TB_Templet.T_Name as Templet, CASE WHEN TB_ClientList.Status... 阅读全文

posted @ 2008-08-06 15:27 anytime8 阅读(158) 评论(0) 推荐(0) 编辑

2008年8月4日

摘要: ASP.NET程序中常用的三十三种代码(第六页) 29.DataGrid使用: 添加删除确认: private void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { foreach(DataGridItem di in this.DataGrid1... 阅读全文

posted @ 2008-08-04 23:32 anytime8 阅读(213) 评论(0) 推荐(0) 编辑

摘要: ASP.NET程序中常用的三十三种代码(第五页) 24.datagrid选定比较底下的行时,为什么总是刷新一下,然后就滚动到了最上面,刚才选定的行因屏幕的关系就看不到了。 page_load page.smartNavigation=true 25.在Datagrid中修改数据,当点击编辑键时,数据出现在文本框中,怎么控制文本框的大小 ? private void DataGrid1... 阅读全文

posted @ 2008-08-04 23:31 anytime8 阅读(152) 评论(0) 推荐(0) 编辑

摘要: ASP.NET程序中常用的三十三种代码(第四页) 18.日期格式化 【aspx页面内:<%# DataBinder.Eval(Container.DataItem,"Company_Ureg_Date")%> 显示为: 2004-8-11 19:44:28 我只想要:2004-8-11 】 <%# DataBinder.Eval(Container.DataItem,"Company... 阅读全文

posted @ 2008-08-04 23:30 anytime8 阅读(147) 评论(0) 推荐(0) 编辑

摘要: ASP.NET程序中常用的三十三种代码(三) 12.Panel 横向滚动,纵向自动扩展 <asp:panel style="overflow-x:scroll;overflow-y:auto;"></asp:panel> 13.回车转换成Tab <script language="javascript" for="document" event="onkeydown"> if(even... 阅读全文

posted @ 2008-08-04 23:28 anytime8 阅读(133) 评论(0) 推荐(0) 编辑

摘要: ASP.NET程序中常用的三十三种代码(第二页) 6.表格超连接列传递参数 <asp:HyperLinkColumn Target="_blank" headertext="ID号" DataTextField="id" NavigateUrl="aaa.aspx?id=’ <%# DataBinder.Eval(Container.DataItem, "数据字段1")%>’ & n... 阅读全文

posted @ 2008-08-04 23:23 anytime8 阅读(216) 评论(0) 推荐(0) 编辑

摘要: ASP.NET程序中常用的三十三种代码(第一页) 1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("id"... 阅读全文

posted @ 2008-08-04 23:21 anytime8 阅读(170) 评论(0) 推荐(0) 编辑

摘要: 首页 博客 技术文章 C#语言 数据模式 源码发布 .NET控件库 ... 阅读全文

posted @ 2008-08-04 18:16 anytime8 阅读(437) 评论(1) 推荐(1) 编辑

摘要: using System; class Account { private double balance = 0; //字段 public double Balance //属性 { get { return balance; } set { balance = value;} } /*============================================... 阅读全文

posted @ 2008-08-04 18:10 anytime8 阅读(226) 评论(0) 推荐(0) 编辑

摘要: using System; class SumToHundred { public static void Main() { int sum=0; for(int i=1; i<=100; i++) sum += i; Console.WriteLine(sum); } } 阅读全文

posted @ 2008-08-04 18:09 anytime8 阅读(151) 评论(0) 推荐(0) 编辑

摘要: using System; class Base { /* * public 的可访问范围是所有类 * private 的可访问范围是当前类 * protected 的可访问范围是当前类及其子类 */ public string name = "Tom"; private double salary = 1500; protected int age = 20; publ... 阅读全文

posted @ 2008-08-04 18:09 anytime8 阅读(201) 评论(0) 推荐(0) 编辑

摘要: using System; using System.Collections; public enum enuSortOrder {IDAsc, IDDesc, RankAsc, RankDesc} public class Person : IComparable { public static enuSortOrder intSortOrder = enuSortOrder.IDAsc; ... 阅读全文

posted @ 2008-08-04 18:08 anytime8 阅读(209) 评论(0) 推荐(0) 编辑

摘要: using System; using System.Collections; public class Person : IComparable { public int ID; public string Rank; public Person(int id, string rank) { this.ID=id; this.Rank = rank; } #region ICompa... 阅读全文

posted @ 2008-08-04 18:07 anytime8 阅读(174) 评论(0) 推荐(0) 编辑

摘要: using System; class Factor { public static void Main() { for(int i=1; i<=100; i++) if(IsPrime(i)) Console.WriteLine(i); } public static bool IsPrime(int n) { for(int i=2; i... 阅读全文

posted @ 2008-08-04 18:06 anytime8 阅读(150) 评论(0) 推荐(0) 编辑

摘要: using System; class ArraySort { public static void Main() { int[] d = {10,15,21,43,17,98,2,74,63,10}; int temp; //冒泡法排序 for(int i=0; i<d.Length; i++) for(int j=i+1; j<d.Length; j++) ... 阅读全文

posted @ 2008-08-04 18:06 anytime8 阅读(229) 评论(0) 推荐(0) 编辑