易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET面试题:ListView扩展

公司要求开发一个继承System.Windows.Forms.ListView类的组件,要求达到以下的特殊功能:点击ListView各列列头时,能按照点击列的每行值进行重排视图中的所有行 (排序的方式如DataGrid相似)。根据您的知识,请简要谈一下您的思路 ?
直接放上代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TestListView
{
    public partial class ListViewEx : ListView
    {
        protected override void OnColumnClick(ColumnClickEventArgs e)
        {
            if (this.ListViewItemSorter == null)
            {
                this.ListViewItemSorter = new ListViewItemComparer(e.Column, SortOrder.Ascending);
            }
            else
            {
                ListViewItemComparer comparer = this.ListViewItemSorter as ListViewItemComparer;
                if (comparer.SortColumn == e.Column)
                {
                    if (comparer.Order == SortOrder.Ascending)
                    {
               &


相关文档:

ASP.NET自动给URL加上超链接

作为一个程序员,在完成设计后还要根据程序的情况以及用户的反映不断对程序进行改进,这样才能不断地完善自己的作品。笔者在制作完软件商务网的论坛后,发现人们总喜欢在帖子中加上各种有用的URL链接或Email地址。而笔者当初设计时没有考虑到这一点,使得这些URL链接或Email地址只能以文字的形式而并不是以超链接的形式显示 ......

asp.net学习路线图

ASP.NET学习路线图
 
如果你已经有较多的面向对象开发经验,跳过以下这两步:
第一步 掌握一门.NET面向对象语言,C#或VB.NET 我强烈反对在没系统学过一门面向对象(OO)语言的前提下去学ASP.NET。 ASP.NET是一个全面向对象的技术,不懂OO,那绝对学不下去!
第二步 对.NET Framework类库有一定的了解 可以通过开发W ......

【转】ASP.NET中常用到的27个函数集

1、DateTime 数字型
以下是引用片段:
System.DateTime currentTime=new System.DateTime();
1.1 取当前年月日时分秒 currentTime=System.DateTime.Now;
1.2 取当前年 int 年=currentTime.Year;
1.3 取当前月 int 月=currentTime.Month;
1.4 取当前日 int 日=currentTime.Day;
1.5 取当前时 int 时=currentTi ......

asp.net生成静态页面

ASP.NET生成静态页
核心技术:
HTMLPage文件夹,ModelHTML.htm文件中的ArticleTitle,ArticleContent都是要替换的区域
WriteFile(dr["ArticleTitle"].ToString(), dr["ArticleContent"].ToString(), dr["ID"].ToString());
1.前台
<head runat="server">
<title>ASP.NET生成静态网页</title>
& ......

ASP.NET"正在中止线程"错误原及解决方法

 最近做的系统中老出现的一些问题不太明白,在使用 Response.End、Response.Redirect 或 Server.Transfer 时出现 ThreadAbortException ,本来系统是没有问题的,在保存数据时也可以正常,本来使用try-catch 语句是用来捕获一异常情况的,但系统正常,老捕获到下面的东西
##[操作记录]:2010-02-23 9:25:12  Sys ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号