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

asp.netÖÐÈçºÎ»Ø³µ´¥·¢Ö¸¶¨°´Å¥µÄʼþ

ÔÚ.aspxÒ³ÃæÖÐÌí¼Ó£º
<SCRIPT LANGUAGE="javascript">
function SubmitKeyClick(button)
{   
     if (event.keyCode != 13) ;return;
     {       
         event.keyCode=9;
         event.returnValue = false;
         document.all[button].click();
     }
}</SCRIPT>
ÔÚPage_LoadʼþÖÐÌí¼Ó£º
textbox1.Attributes.Add("onkeydown","SubmitKeyClick('btnOK');");


Ïà¹ØÎĵµ£º

Asp.net ÓÃurlÖØд(URLReWriter)ʵÏÖÈÎÒâ¶þ¼¶ÓòÃû

À´ÕÒÕâƪÎÄÕµÄ,Ó¦¸Ã¶¼ÖªµÀʲô½Ð¶þ¼¶ÓòÃû°É,·Ï»°¾Í²»ËµÁË.µ«ÊÇÌÖÂÛÇ°,ÏÈÒªÃ÷°×Ò»¸ö˼ÏëÎÊÌâ.
ºÜ¶àÅóÓÑÒ»Ö±¿¼ÂDz»Çå(ÎÒÇ°¼¸ÌìÒ²Ò»Ö±¸ã²»Ã÷°×)µÄÎÊÌâÊÇ,ÎÒ¼üÈëÒ»¸öµØÖ·ºó,ÔõôÕâ¸öurl¾Í±»ÖØдÁË?
µÚÒ»²½:ÔÚä¯ÀÀÆ÷¼üÈëÁËÒ»¸öµØÖ·,±ÈÈçhttp://love.kerry.com,µã»Ø³µºó,¶¼·¢ÉúÁËʲô?
ΪÁË°ÑÎÊÌâ¼òµ¥»¯,ÎÒÀ´ÕâÑù½âÊÍ:
µÚ¶þ² ......

´ÓASP.NETÓ¦ÓóÌÐòÉú´æÖÜÆÚ̸Æð(2)

  ÄÇôͨ¹ýÒÔÉϵÄ˵Ã÷£¬ÎÊÌâ¶þ£ºÎÒÃÇÔõô֪µÀIISºÍASP.NET ISAPIµ½µ×ÊÇÔõÑù¹¤×÷µÄ£¿
ASP.NET Process ModelÖ®Ò»£ºIIS ºÍ ASP.NET ISAPI
Ç°¼¸ÌìÓÐÒ»¸öÅóÓÑÔÚMSNÉÏÎÊÎÒ“ASP.NET ´Ó×î³õµÄ½ÓÊÕµ½Http requestµ½×îÖÕÉú³ÉResponseµÄÕû¸öÁ÷³Ìµ½µ×ÊÇÔõÑùµÄ£¿”ÎÒ¾õµÃÕâ¸öÎÊÌâÉæ¼°µ½IISºÍASP.NETASP.NET Runt ......

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>" ); } ......

ASP.NET¿ì½Ý¼ü´óÈ«

VS2008 ¿ì½Ý¼ü´óÈ«[תÌû]
Ctrl+m+Crtr+oÕÛµþËùÓдó¸Ù
Ctrl+M+Crtr+P: Í£Ö¹´ó¸ÙÏÔʾ
Ctrl+K+Crtr+C: ×¢ÊÍÑ¡¶¨ÄÚÈÝ
Ctrl+K+Crtr+U: È¡ÏûÑ¡¶¨×¢ÊÍÄÚÈÝ
Ctrl+J : Áгö³ÉÔ± ÖÇÄܸÐÖª
Shift+Alt+Enter: Çл»È«ÆÁ±à¼­
Ctrl+B,T / Ctrl+K,K: Çл»ÊéÇ©¿ª¹Ø
Ctrl+B,N / Ctrl+K,N: Òƶ¯µ½ÏÂÒ»ÊéÇ©
Ctrl+B,P: Òƶ¯µ½ÉÏÒ»ÊéÇ©
......

asp.netÖÐʱ¼ä¸ñʽ»¯µÄ¼¸ÖÖ·½·¨

1¡¢Êý¾Ý¿Ø¼þ£¨ÈçDataGrid/DataListµÈ¿Ø¼þ£©¸ñʽ»¯ÈÕÆÚ·½·¨£º
e.Item.Cell[0].Text = Convert.ToDateTime(e.Item.Cell[0].Text).ToShortDateString();
//Ö¸¶¨ÁУ¨µÚ1ÁУ©¸ñʽ»¯ÈÕÆÚ
2¡¢ÓÃStringÀàת»»ÈÕÆÚÏÔʾ¸ñʽ£º
String.Format( "yyyy-MM-dd ",yourDateTime);
3¡¢ÓÃConvert·½·¨×ª»»ÈÕÆÚÏÔʾ¸ñʽ£º
Convert.ToDat ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ