日斋
日新月异

文章分类 -  源文件

aspx页面传值--7种方式
摘要:1、get方式发送页<form id="form1" runat="server"> <div> <a href="WebForm2.aspx?name=5">调转到Form2</a> <asp:Button ID="button2" Text="跳转页面" runat="server" onclick="button2_Click"/>... 阅读全文
posted @ 2010-10-31 23:10 李承隆 阅读(12633) 评论(0) 推荐(0)
vs中创建AJAX(使用第三方组件)需修改web.config文件
摘要:///////使用第三方组建Ajax.dll<httpHandlers> <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" /></httpHandlers>///////使用第三方组件AjaxPro.dll<httpHandlers> <a... 阅读全文
posted @ 2010-10-20 17:38 李承隆
List<T>.AddRange 方法
摘要:static void ListDemo2() { Racer graham = new Racer("Graham", "Hill", "UK", 14); Racer emerson = new Racer("Emerson", "Fittipaldi", "Brazil", 14); Racer mario = new Racer("Mario", "Andretti", "USA", 12... 阅读全文
posted @ 2010-10-11 18:37 李承隆
IComparable\ ICloneable\ ICompare\ Array.Sort
摘要:public class Person : IComparable, ICloneable { public Person() { } public Person(string firstName, string lastName) { this.FirstName = firstName; this.LastName = lastName; } public string FirstName {... 阅读全文
posted @ 2010-10-10 16:49 李承隆
数组复制
摘要:public static void CopyIntArray() { int[] one = { 3, 4 }; int[] clone = (int[])one.Clone(); clone[0] = 33; Console.WriteLine(one[0]); } public static void CopyPersonArray() { Person[] personArr1 = { n... 阅读全文
posted @ 2010-10-09 21:32 李承隆 阅读(144) 评论(0) 推荐(0)