asp.net,c#,vb,vbs,js¸÷¸öÓïÑÔµÄÓÊÏä·¢ËÍÔ´´úÂë
·¢ËͶËÒÔ163ΪÀý
Ò»¡¢asp.net°æ using System.Web.Mail; //ÃüÃû¿Õ¼äÒýÓÃ
c#
MailMessage mail = new MailMessage();
mail.To = "shadow103@qq.com"; //½ÓÊÜÈ˵ÄÓÊÏä
mail.from = "xxx@163.com"; //Äã×Ô¼ºµÄÓÊÏä(×¢ÒâqqÓÊÏä²»ÐÐ)
mail.Subject = "ÄãºÃ˧¸ç"; //ÓÊÏä±êÌâ
mail.Body = "ÕýÎÄ";
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing","2")
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //stmpÑéÖ¤
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", ÄãÓÊÏäÕʺÅ");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "ÄãÓÊÏäÃÜÂë");
SmtpMail.SmtpServer = "smtp.163.com"; //´úÀíÓʼþ·þÎñÆ÷
SmtpMail.Send(mail);
vb
Dim mail As New MailMessage()
mail.To = "shadow103@qq.com"
mail.from = "xxx@163.com"
mail.Subject = "ÄãºÃ˧¸ç"
mail.Body = "ÕýÎÄ"
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing","2")
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'stmpÑéÖ¤
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "ÄãÓÊÏäÕʺÅ")
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "ÄãÓÊÏäÃÜÂë ")
SmtpMail.SmtpServer = "smtp.163.com" '´úÀíÓʼþ·þÎñÆ÷
SmtpMail.Send(mail)
Ïà¹ØÎĵµ£º
ÔÚûÓÐ<asp:UpdatePanel ID="up" runat="server"> <ContentTemplate>ÎÞˢл·¾³ÖУº
Response.Write("<script>alert('¹§Ï²Äú£¬Òѳɹ¦¼ÓÈëµ½ÄúµÄÈ˲ſ⣡');</script>");
ÔÚÓÐ<asp:UpdatePanel ID="up" runat="server"> <ContentTemplate>ÎÞˢл·¾³Ö ......
1.ǰ̨ҳÃæÒ»°ã²»ÓÃgridview datalist treeview updatepanel µÈ¿Ø¼þ£¬ÒòΪËûÃÇ»áÉú³ÉºÜ¶àÎÒ²»ÏëÒªµÄ´úÂë¡£¶øÇÒǶÌ×Ò»´ó¶Ñtable
2.ÓÃrepeater+div+css+ul liÒѾ×ã¹»ÎÒ×öºÜ¶à¶«Î÷ÁË¡£
3.·¢²¼ºóµÄÒ³Ã棬¿ÉÒÔ°ÑһЩ¿ÕÐкͻ»ÐÐ ºÍһЩ²»±ØÒªµÄ¿Õ¸ñÈ¥µô£¬¾¡Á¿¼õÉÙaspxÒ³ÃæµÄÈÝÁ¿¡£Ìá¸ß¼ÓÔØËٶȡ£
4.ÔÚÒ³ÃæµÄtitleдÉϱ¾Ò³ÄÚÈÝ ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......
1. Êʵ±Ê¹ÓÃUpdatePanel
2. ÀûÓÃWebService·½·¨¶¯Ì¬Éú³ÉÓû§¿Ø¼þµÄÄÚÈÝ£¬±ÜÃâUpdatePanel»Ø´«Ôì³ÉµÄÐÔÄÜËðʧ£¨ViewState£©
3. ToolkitScriptManager´úÌæScriptManager
4. <asp:ScriptManager runat="server" ID="sm" ScriptMode="Release" EnablePartialRendering="false"
......
<system.web>
<!--********³ö´íÒ³µÄÉ趨********-->
<customErrors mode="On" defaultRedirect="~/Error.htm"> </customErrors> ......