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

ASP.NET³£ÓÃÓï¾ä

1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ò
Response.Write(" <script language='javascript'>alert('²úÆ·Ìí¼Ó³É¹¦£¡')
</script >");
3.//ɾ³ýÎļþ
string filename ="20059595157517.jpg";
pub.util.DeleteFile(HttpContext.Current.Server.MapPath("../file/")
+filename);
4.//°ó¶¨ÏÂÀ­Áбí¿òdatalist
System.Data.DataView dv=conn.Exec_ex("select -1 as code,'ÇëÑ¡Ôñ¾­ÓªÄ£Ê½'
as content from dealin union select code,content from dealin");
this.dealincode.DataSource=dv;
this.dealincode.DataTextField="content";
this.dealincode.DataValueField="code";
this.dealincode.DataBind();
this.dealincode.Items.FindByValue(dv[0]["dealincode"].ToString
()).Selected=true;
5.//ʱ¼äÈ¥ÃëÏÔʾ
<%# System.DateTime.Parse(DataBinder.Eval
(Container.DataItem,&quot;begtime&quot;).ToString()).ToShortDateString()%>
6.//±êÌâ´øÁ´½Ó
<%# &quot; <a class=\&quot;12c\&quot; target=\&quot;_blank\&quot;
href=\&quot;http://www.51aspx/CV/_&quot;+DataBinder.Eval
(Container.DataItem,&quot;procode&quot;)+&quot;.html\&quot;>&quot;+
DataBinder.Eval(Container.DataItem,&quot;proname&quot;)+&quot; </a>&quot;%>
7.//ÐÞ¸ÄתÏò
<%# &quot; <A href=\&quot;editpushpro.aspx?id=&quot;+DataBinder.Eval
(Container.DataItem,&quot;code&quot;)+&quot;\&quot;>&quot;+&quot;ÐÞ¸Ä
&quot;+&quot; </A>&quot;%>
8.//µ¯³öÈ·¶¨°´Å¥
<%# &quot; <A id=\&quot;btnDelete\&quot; onclick=\&quot;return confirm('ÄãÊÇ·ñ
È·¶¨É¾³ýÕâÌõ¼Ç¼Âð?');\&quot; href=\&quot;pushproduct.aspx?
dl=&quot;+DataBinder.Eval(Container.DataItem,&quot;code&quot;)
+&quot;\&quot;>&quot;+&a


Ïà¹ØÎĵµ£º

asp.net ajaxѧϰ±Ê¼Ç

asp.net ajaxѧϰ±Ê¼Ç
 
Ò»¡¢          µÇÌÃÈëÊÒ——»ù±¾¸ÅÄî
http://blog.csdn.net/soldierluo/archive/2009/11/18/4830758.aspx
 
¶þ¡¢          СÊÔÉíÊÖ——µÚÒ»¸öAjax³ÌÐò
http://bl ......

ASP.NETÒ³ÃæË¢Ð·½·¨×ܽá

ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e )     {        Response.Redirect( Request.Url.ToString( ) );   }  
µ ......

Asp.NetÖÐSession

Session¼´»á»°£¬ÊÇÖ¸Ò»¸öÓû§ÔÚÒ»¶Îʱ¼äÄÚ¶Ôijһ¸öÕ¾µãµÄÒ»´Î·ÃÎÊ¡£ 
Session¶ÔÏóÔÚ.NETÖжÔÓ¦HttpSessionStateÀ࣬±íʾ“»á»°×´Ì¬”£¬¿ÉÒÔ±£´æÓ뵱ǰÓû§»á»°Ïà¹ØµÄÐÅÏ¢¡£
Session¶ÔÏóÓÃÓÚ´æ´¢´ÓÒ»¸öÓû§¿ªÊ¼·ÃÎÊij¸öÌØ¶¨µÄaspxµÄÒ³ÃæÆð£¬µ½Óû§À뿪Ϊֹ£¬Ìض¨µÄÓû§»á»°ËùÐèÒªµÄÐÅÏ¢¡£Óû§ÔÚÓ¦ÓóÌÐòµ ......

asp.netÒ³ÉúÃüÖÜÆÚ

ÔÚasp.netÒ³ÔËÐУ¬´ËÒ³½«¾­ÀúÒ»¸öÉúÃüÖÜÆÚ£¬ÔÚÉúÃüÖÜÆÚÖн«Ö´ÐÐһϵÁд¦Àí²½Ö裬ÕâЩ²½Öè°üÀ¨£º³õʼ»¯£¬ÊµÀý»¯¿Ø¼þ£¬»¹Ô­ºÍά»¤×´Ì¬£¬ÔËÐÐʼþ´¦Àí³ÌÐò´úÂëÒÔ¼°½øÐгÊÏÖ£»
Ò»°ãÀ´ËµÒ³Òª¾­ÀúÒÔϵĸ÷¸ö½×¶Î£º
£¨1£©£ºÒ³ÇëÇó£ºÒ³ÇëÇó·¢ÉúÔÚÒ³ÉúÃüÖÜÆÚ¿ªÊ¼Ö®Ç°£¬Óû§ÇëÇóҳʱ£¬asp.net½«È·¶¨ÊÇ·ñÐèÒª·ÖÎöºÍ±àÒëÒ³£¨´Ó¶ø¿ªÊ¼Ò ......

asp.net³£ÓÃ֪ʶ

1. oncontextmenu="window.event.returnvalue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return f ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ