摘要:
protectedvoidbtnImport_Click(objectsender,EventArgse){if(FileUpload1.HasFile==false)//HasFile用来检查FileUpload是否有指定文件{Response.Write("<script>alert('请您选择Excel文件')</script>");return;//当无文件时,返回}stringIsXls=System.IO.Path.GetExtension(FileUpload1.FileName).ToString().ToLower( 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Sort{publicclass Sort{///<summary>/// 插入排序///</summary>///<param name="list"></param>publicstaticvoid InsertSort(List<int> list){int j, tmp;for (int i =1; i < list.C 阅读全文