您的位置:首页 > 编程语言 > ASP

ASP.NET 获取MSN联系人列表

2008-07-22 16:32 369 查看
用到的是 DOTMSN 大家可以从 这里 下到它的代码....

功能很简单...写的有点槽了...不过功能是实现了....

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<title>无标题页</title>

</head>

<body>

<form id="form1" runat="server">

<div align="center">

<ul>

<li>

用户名:<asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>

</li>

<li>

密    码:<asp:TextBox ID="txtPassWd" TextMode="Password" runat="server"></asp:TextBox>

</li>

</ul>

<asp:Button ID="Button1" runat="server" Text="登陆" onclick="Button1_Click" />

<br />

<asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>

<br />

<hr />

<asp:ListBox Height="200" ID="ListBox1" runat="server" SelectionMode="Multiple"></asp:ListBox>

</div>

</form>

</body>

</html>

CS

using System;

using System.Configuration;

using System.Data;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.HtmlControls;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Xml.Linq;

using System.Collections.Generic;

using XihSolutions.DotMSN;

using XihSolutions.DotMSN.Core;

using XihSolutions.DotMSN.DataTransfer;

public partial class _Default : System.Web.UI.Page

您还可以点 这里 下载全部代码.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: