asp.net ·¢ËÍÓʼþ
web.config
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="mymail<you@163.com>">
<network host="smtp.163.com" />
</smtp>
</mailSettings>
</system.net>
C#
try
{
MailAddress from = new MailAddress("mymail@163.com");
MailAddress to = new MailAddress("mymail@163.com");
MailMessage message = new MailMessage(from, to);
message.Subject = "Test Message";//·¢ËÍÓʼþµÄ±êÌâ
message.Body = "yuanyouchun";//·¢ËÍÓʼþµÄÄÚÈÝ
//if (FileUpload1.PostedFile.FileName != "")
//{//·¢Ë͸½¼þ
// Attachment att = new Attachment(FileUpload1.PostedFile.FileName);
// message.Attachments.Add(att);
//}
SmtpClient client = new SmtpClient("smtp.163.com");
client.UseDefaultCredentials = false;
Ïà¹ØÎĵµ£º
Ò»¡¢´´½¨Îļþ¼Ð
#region ´´½¨Îļþ¼Ð
/// <summary>
/// Self_Function:´´½¨Îļþ¼Ð
/// </summary>
/// <param name="path">´´½¨Îļþ¼ÐµÄ·¾¶</param>
/// <param name="noyes">Òþ²ØÎ ......
Accordion¿Ø¼þʱµÄ³£ÓÃÊôÐÔ±êÇ©
ÊôÐÔ±êÇ©Ãû Ãè¡¡¡¡Êö
SelectedIndex ¸Ã¿Ø¼þ³õ´Î¼ÓÔØʱչ¿ªµÄAccordionPaneÃæ°åµÄË÷ÒýÖµ
HeaderCssClass ¸ÃAccordionÖаüº¬µÄËùÓÐAccordionPaneÃæ°åµÄ±êÌâÇøÓòËùÓ¦ÓõÄCSS Class
ContentCssClass ¸ÃAccordionÖаüº¬µÄËùÓÐAccordionPaneÃæ°åµÄÄÚÈÝÇøÓòËùÓ¦ÓõÄCSS Class
AutoSize Ô ......
Ç°Ç°ºóºóÊÕµ½¹ýһЩѧÉúµÄÀ´ÐÅ£¬Ñ¯ÎÊASP.NETµÄѧϰ˳ÐòÎÊÌ⣬Ôڴ˾ÍÏò´òËãϵͳѧϰASP.NET¼¼ÊõµÄ³õѧÕß̸̸ÎҵĽ¨Òé¡£
Èç¹ûÄãÒѾÓн϶àµÄÃæÏò¶ÔÏ󿪷¢¾Ñ飬Ìø¹ýÒÔÏÂÕâÁ½²½£º
µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C££»òVB.NET¡£
ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó£¨OO£© ......
ÔÚijҳÃæÉÏÓÐÈçÏÂÐÅÏ¢£¬
Html£¬
<asp:Button ID="btn" runat="server" Text="Click me" OnClick="ButtonClicked" />
<script language="javascript">
function javascriptMethod() {
alert(1);
}
</script>
C#£¬
protected void ButtonClic ......