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

(转)ASP.Net邮件发送类

ASP.Net邮件发送类
本文转自:http://www.pcstu.com/program/Asp_net/sl/20070706/52523.html
说明:本文没有测试,但看起来似乎不能用于发送附件,如要发送附件,可参考:http://blog.csdn.net/lff642/archive/2008/07/15/2654346.aspx
using System;
using System.Text;
using System.IO;
using System.Net;
using System.Net.Sockets;
namespace OSLeagueForumXP.Components
{
    /// <summary>
    /// TcpClient派生类,用来进行SMTP服务器的连接工作
    /// </summary>
    public class SMTPClient : TcpClient
    {
        /// <summary>
        /// 进行SMTP服务器的连接
        /// </summary>
        public SMTPClient()
        {
        }
        /// <summary>
        /// 是否以连接
        /// </summary>
        /// <returns>连接为True,不连接为False</returns>
        public bool isConnected()
        {
            return Active;
        }
       
        /// <summary>
        /// 向服务器发送命令
        /// </summary>
        /// <param name="Command">命令</param>
        public void SendCommandToServer(string Command)
        {
       &n


相关文档:

Tip/Trick: Url Rewriting with ASP.NET

 
People often ask me for guidance on how they can dynamically "re-write" URLs and/or have the ability to publish cleaner URL end-points within their ASP.NET web applications.  This blog post summarizes a few approaches you can take to cleanly map or rewrite URLs with ASP.NET, and have th ......

Ajax 基础 (asp.net C#)


<script type="text/javascript">
        var xmlHttp;
        function createXMLHttpRequest()
        {
            ......

asp.net跳转页面的三种方法比较

asp.net跳转页面的三种方法比较
  今天老师讲了三种跳转页面的方法,现在总结如下:
  1. response.redirect  这个跳转页面的方法跳转的速度不快,因为它要走2个来回(2次postback),但他可以跳  转到任何页面,没有站点页面限制(即可以由雅虎跳到新浪),同时不能跳过登录保护。但速度慢是其最大缺陷!r ......

文件上传代码(asp.net)

Boolean fileOK = false;
        String path = "D:\\";
        //string path = "1.gif";
      
            String fileExtension =
 &nbs ......

ASP.NET页面刷新方法总结

第一:
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } 第二:
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script&g ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号