asp.net 发邮件完整类实列
public class ToEmial
{
string _to;
string _title;
string _content;
string _strHost;
string _strAccount;
string _strPwd;
string _strfromName;
string _strfrom;
public string To
{
set { _to = value; }
get { return _to; }
}
public string Title
{
set { _title = value; }
get { return _title; }
}
public string Content
{
set { _content = value; }
get { return _content; }
}
public string Host
{
set { _strHost = value; }
get { return _strHost; }
}
public string Account
&nbs
相关文档:
ASP.NET3.5可以很简答的实现一个很有用的功能,既跨页面传送,
传统的提交窗体只会将窗体提交给它自己。而跨页面的提交,
会将page1的内容传送个page2,并在page2中使用page1中的控件。
① 跨页面传递的简单实现
页面一(Default.aspx)中的控件
<a ......
using System.Net;
using System.Net.Mail;
using System.Text;
#region 发送Email
public void sendEmail()
{
#region 验证email
SmtpClient smtp = new SmtpCl ......
<一>页面级的错误处理
void Page_Error(Object sender, EventArgs e) {
String message = "<font face=verdana color=red>"
......
http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/Series/MVC.aspx
http://www.cnblogs.com/chsword/archive/2009/03/11/zd_mvc1.html
jQuery框架学习:http://www.zz68.net/WebDesign/js/200907/0H611P2009.html
ASP.NET 中的设计模式之MVC篇:http://www.cnblogs.com/superhasty/archive/2005/06/08 ......