Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÃasp.netʵÏֵİѱ¾ÎÄÍƼö¸øºÃÓѹ¦ÄÜ


     ///<summary>
  ///<author>·ÉÓ¥@ASPCool.com</author>
  ///<description>±¾ÎÄÓÃasp.netʵÏÖ°Ñ´ËÎÄÍƼö¸øºÃÓѵŦÄÜ¡£</desciption>
  ///<copyright>ASP¿á¼¼Êõ×ÊѶÍø(www.ASPCool.com)</copyright>
  ///</summary>
  
  ÕâÀï·ÉÓ¥ÓÃÒ»¸ö¼òµ¥µÄÀý×ÓÏò´ó¼Ò½éÉÜÈçºÎʹÓÃasp.netµÄÓʼþ·¢Ë͹¦ÄÜ¡£Ê×ÏÈ£¬ÎÒÃÇÏÈ×öÒ»¸ö·¢ËͽçÃæ¡£tuijian.asp, ÆäÖÐtitleÊÇ´ú±íÎÄÕµıêÌ⣬id´ú±íÎÄÕµıàºÅ¡£
  
  <html>
  <body>
  ÄúºÃ£¬»¶Ó­Ê¹ÓÃASP¿á¼¼Êõ×ÊѶÍøÎÄÕÂÍƼö¹¦ÄÜ£¬ÄúÍƼöµÄÎÄÕÂΪ£º¡¶<%=request("title")%>¡·.<BR>
  <form action="mail.aspx">
  ÄúµÄÐÅÏ䣺<INPUT TYPE="text" NAME="sender"><BR>
  ÊÕ¼þÈËÐÅÏ䣺<INPUT TYPE="text" NAME="accepter"><BR>
  <INPUT TYPE="hidden" name="title" value="<%=request("title")%>">
  <INPUT TYPE="hidden" name="id" value="<%=request("id")%>">
  <INPUT TYPE="submit" value="·¢ËÍ"><INPUT TYPE="reset" value="ÖØд">
  </form>
  </body>
  </html>
  
  ÏÂÃæÎÒÃǾÍÓÃasp.netÀ´ÊµÏÖÍƼöÎÄÕ¹¦ÄÜ£¬mail.aspx
  
  <% @Page Language="C#" Debug="true"%>
  <% @Import Namespace="System.Web.Mail" %>
  <%
  
  
  MailMessage msgMail = new MailMessage();
  
  msgMail.To = Request["accepter"]; //Óʼþ½ÓÊÜÕß
  msgMail.Cc = "webmaster@aspcool.com";
  msgMail.from = Request["sender"];
  msgMail.Subject = "ÄúµÄÅóÓÑ´ÓASPCOOL.COM¸øÄúÍƼöÁËһƪÎÄÕ¡£";
  
  msgMail.BodyFormat = MailFormat.Html;
  string strBody = "<html><body><b>" + Request["accepter"] +"</b>,ÄúºÃ¡£<br>" +
   "ÄúµÄÅóÓÑ: <font color=\"red\">"+ Request["sender"]+ "</font>´Ó<a href=http://www.21asp.net>21asp.net<


Ïà¹ØÎĵµ£º

[ת]ASP.NET(C#)³£ÓôúÂë30Àý

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º 
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString( ......

DevExpress Asp.net(1) AspxButtonµÄ¿Í»§¶Ë²Ù×÷(ת)

20090626
javascriptµ÷Óø¸´°¿Ú£¨¸¸Ò³Ã棩µÄ·½·¨
window.parentÓëwindow.openerµÄÇø±ð javascriptµ÷ÓÃÖ÷´°¿Ú·½·¨
1£º   window.parent ÊÇiframeÒ³Ãæµ÷Óø¸Ò³Ãæ¶ÔÏó
2£º   window.opener ÊÇwindow.open ´ò¿ªµÄ×ÓÒ³Ãæµ÷Óø¸Ò³Ãæ¶ÔÏó
¾ßÌåÀý×ӾͲ»Ð´ÁË¡£
 
DevExpress.Web¿Ø¼þÖеÄAspxButtonµ ......

ASP.NET³ÌÐòÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë

ASP.NET³ÌÐòÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë.......................................
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
......

¹ØÓÚASP.NETÒ³Ãæ´òÓ¡¼¼ÊõµÄ×ܽá

ÍøÂç´òÓ¡¸ÅÊö
¡¡¡¡• B/S½á¹¹µ¼ÖÂÁËWebÓ¦ÓóÌÐòÖдòÓ¡µÄÌØÊâÐÔ¡£
¡¡¡¡• ³ÌÐòÔËÐÐÔÚä¯ÀÀÆ÷ÖУ¬´òÓ¡»úÔÚ±¾µØ£¬¶øÎļþÈ·¿ÉÄÜÔÚ·þÎñÆ÷ÉÏ£¬µ¼ÖÂÁË´òÓ¡¿ØÖƲ»ÊǺÜÁé»î¡£
¡¡¡¡• ¸ñʽÈçºÎ¿ØÖƺͶ¨ÖƵȣ¬ÊÇÎÒÃÇ¿ª·¢ÖпÉÄÜ»áÃæ¶ÔµÄÎÊÌâ¡£
¡¡¡¡´òÓ¡ÎĵµµÄÉú³É
¡¡¡¡• 1¡¢¿Í»§¶Ë½Å±¾·½Ê½
¡¡¡¡Ò»°ãÇé¿öÏ£¬Ö÷ÒªÊ ......

asp.netʵÏÖÊ¡ÊÐÇø¼¶ÁªÏÂÀ­ÁÐ±í²¢±£´æ״̬

asp.netʵÏÖÊ¡ÊÐÁª¶¯²¢ÇÒ±£´æ״̬£¬ÊµÏÖÔ­Àí£º³õ´ÎʹÓÃC#´«Í³µÄDataBind½øÐÐÊý¾Ý°ó¶¨£¬Ñ¡ÔñÊ¡£¬Êкó½øÐÐajax·½Ê½¼ÓÔØϼ¶ÁÐ±í£¬²¢½«Ñ¡¶¨Öµ±£´æµ½HiddenÖУ¬µã»÷Ìá½»ºó¸ù¾ÝHiddenµÄÖµ½øÐÐÊ¡£¬Êа󶨣¬ÔÙ½«HiddenµÄÖµ¸³¸øDropDownListµÄSelectedValue£¬´Ó¶øʵÏÖ״̬µÄ±£´æ¡£
HTML´úÂë
<asp:HiddenField ID="HiddenField ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ