1、使用List<T>.ConvertAll方法
2008年1月小记        public List<string> GetDisallowedUserNames()
        }

2008年1月小记    [Serializable]
2008年1月小记    
public class DisallowedUser
    }

2、CheckBox全选例子。

2008年1月小记using System;
2008年1月小记
using System.Data;
2008年1月小记
using System.Configuration;
2008年1月小记
using System.Collections;
2008年1月小记
using System.Web;
2008年1月小记
using System.Web.Security;
2008年1月小记
using System.Web.UI;
2008年1月小记
using System.Web.UI.WebControls;
2008年1月小记
using System.Web.UI.WebControls.WebParts;
2008年1月小记
using System.Web.UI.HtmlControls;
2008年1月小记
using CSDN.ServiceComponents.PermissionWrapper;
2008年1月小记
using CSDN.Profile.IBLL;
2008年1月小记
using CSDN.Profile.Components;
2008年1月小记
using System.Collections.Generic;
2008年1月小记
using CSDN.Profile.ComponentModel;
2008年1月小记
using CSDN.Profile.Lib;
2008年1月小记
2008年1月小记
public partial class Admin_DisallowedUserList : System.Web.UI.Page

3、使用svcutil 生成WCF客户端
打开Visual Studio 2008 Command Prompt
d:
cd temp
svcutil /language:c# /out:NotifyServiceClient.cs /config:app.config http://localhost:8000/Service/NotifyService.svc

4、手工书写WCF客户端
2008年1月小记    public class CacheNotifiedUserClient : ClientBase<ICacheNotifiedUser>, ICacheNotifiedUser
    }

5、如何方便地自动生成WCF客户端及配置文件。
A、设置VS2008 X86 tools的环境:Call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
B、svcutil /language:c# /out:NotifyServiceClient.cs /config:app.config http://localhost:8000/Service/NotifyService.svc
C、写成一个生成后事件

相关文章: