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

ASP.NETÒ³Ãæˢз½·¨×ܽá

ÏÈ¿´¿´ASP.NETÒ³ÃæˢеÄʵÏÖ·½·¨£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script>" ); } µÚÈý£º
private void Button3_Click( object sender, System.EventArgs e ) { Response.AddHeader( "Refresh","0" ); } µÚËÄ£º
private void Button6_Click( object sender, System.EventArgs e ) { //ºÃÏñÓÐЩ²»¶Ô£¿ //Response.Write( " < script language=javascript>window.location.reload( ); < /script>" ); } µÚÎ壺
< script>< !-- var limit="3:00" if ( document.images ) { var parselimit=limit.split( ":" )parselimit=parselimit[0]*60+parselimit[1]*1 } function beginrefresh( ) { if ( !document.images )returnif ( parselimit==1 )window.location.reload( )else { parselimit-=1curmin=Math.floor( parselimit/60 )cursec=parselimit%60if ( curmin!=0 )curtime=curmin+"·Ö"+cursec+"ÃëºóÖØË¢±¾Ò³£¡"elsecurtime=cursec+"ÃëºóÖØË¢±¾Ò³£¡"window.status=curtimesetTimeout( "beginrefresh( )",1000 ) } } window.onload=beginrefresh//--> < /script>< DIV style="Z-INDEX: 102; LEFT: 408px; POSITION: absolute; TOP: 232px" ms_positioning="text2D"> < P>< FONT size="3">×Ô¶¯Ë¢ÐÂÒ³Ãæ< /FONT>< /P> < /DIV> µÚÁù£º
< meta http-equiv="refresh" content="300; url=target.html"> ÓÃwindow.location.hrefʵÏÖË¢ÐÂÁí¸ö¿ò¼ÜÒ³Ãæ
ÔÚдasp.net³ÌÐòµÄʱºò£¬ÎÒÃǾ­³£Óöµ½ÌøתҳÃæµÄÎÊÌ⣬ÎÒÃǾ­³£Ê¹ÓÃResponse.Redirect £¬Èç¹û¿Í»§ÒªÔÚÌøתµÄʱºòʹÓÃÌáʾ£¬Õâ¸ö¾Í²»Áé¹âÁË£¬È磺
Response.Write("< script>alert('¹§Ï²Äú£¬×¢²á³É¹¦£¡'); < /script>"); Response.Redirect("main.html"); ÕâʱºòÎÒÃǵÄÌáʾÄÚÈÝûÓгöÀ´¾ÍÌøתÁË£¬ºÍResponse.Redirect("main.html"); ûÓÐÈκÎÇø±ð¡£
ÕâʱÎÒÃDzÉÓÃÏÂÃæ´úÂëÊÔÑéÒ»ÏÂASP.NETÒ³ÃæˢУº
Response.Write("< script language=javascript>alert('¹§Ï²Äú£¬×¢²á³É¹¦£¡')< /script>"); Response.Write("<


Ïà¹ØÎĵµ£º

ÓÅÐãASP.NET³ÌÐòÔ±µÄÐÞÁ¶Ö®Â·


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

ASP.NETÒ³Ãæ¶ÔÏó

   »ñÈ¡ÇëÇóµÄÒ³µÄHttpApplicationState ¶ÔÏó¡£
Ò»¡¢HttpApplicationState Àà
      ×÷ÓãºÆôÓà ASP.NET Ó¦ÓóÌÐòÖжà¸ö»á»°ºÍÇëÇóÖ®¼äµÄÈ«¾ÖÐÅÏ¢¹²Ïí¡£
      ASP.NET Ó¦ÓóÌÐòµÄ¸ÅÄÊǵ¥¸ö Web ·þÎñÆ÷ÉϵÄij¸öÐéÄâĿ¼¼°Æä×ÓĿ¼·¶Î§ÄÚµÄËùÓÐÎļþ¡¢Ò³¡ ......

Asp.net´ò°ü°²×°

 Ò»).´´½¨²¿ÊðÏîÄ¿
1. ÔÚ“Îļþ”²Ëµ¥ÉÏÖ¸Ïò“Ìí¼ÓÏîÄ¿”£¬È»ºóÑ¡Ôñ“н¨ÏîÄ¿”¡£
2. ÔÚ“Ìí¼ÓÐÂÏîÄ¿”¶Ô»°¿òÖУ¬Ñ¡Ôñ“ÏîÄ¿ÀàÐÍ”´°¸ñÖеē°²×°ºÍ²¿ÊðÏîÄ¿”£¬È»ºóÑ¡Ôñ“Ä£°å”´°¸ñÖеē°²×°ÏîÄ¿”¡£ÔÚ“Ãû³Æ”¿ò ......

ASP.NET MVC Best Practices 27+

12 ASP.NET MVC Best Practices
M
DomainModel != ViewModel
Use ActionFilters for “shared” data
V
Do NEVER user code-behind
Write HTML each time you can
If there is an if, write an HtmlHelper
Choose your view engine carefully
C
Delete the AccountController
Isolate Controllers fro ......

ASP.NETÔ¶³Ì±¸·Ý»Ö¸´SQL ServerÊý¾Ý¿â

///<summary>
      ///±¸·ÝÊý¾Ý¿âµ½±¾µØ´ÅÅÌ
      ///</summary>
    public bool BackUp(string BackUpFile)
    {
        try
&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ