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');");
Ïà¹ØÎĵµ£º
À´ÕÒÕâƪÎÄÕµÄ,Ó¦¸Ã¶¼ÖªµÀʲô½Ð¶þ¼¶ÓòÃû°É,·Ï»°¾Í²»ËµÁË.µ«ÊÇÌÖÂÛÇ°,ÏÈÒªÃ÷°×Ò»¸ö˼ÏëÎÊÌâ.
ºÜ¶àÅóÓÑÒ»Ö±¿¼ÂDz»Çå(ÎÒÇ°¼¸ÌìÒ²Ò»Ö±¸ã²»Ã÷°×)µÄÎÊÌâÊÇ,ÎÒ¼üÈëÒ»¸öµØÖ·ºó,ÔõôÕâ¸öurl¾Í±»ÖØдÁË?
µÚÒ»²½:ÔÚä¯ÀÀÆ÷¼üÈëÁËÒ»¸öµØÖ·,±ÈÈçhttp://love.kerry.com,µã»Ø³µºó,¶¼·¢ÉúÁËʲô?
ΪÁË°ÑÎÊÌâ¼òµ¥»¯,ÎÒÀ´ÕâÑù½âÊÍ:
µÚ¶þ² ......
ÄÇôͨ¹ýÒÔÉϵÄ˵Ã÷£¬ÎÊÌâ¶þ£ºÎÒÃÇÔõô֪µÀIISºÍASP.NET ISAPIµ½µ×ÊÇÔõÑù¹¤×÷µÄ£¿
ASP.NET Process ModelÖ®Ò»£ºIIS ºÍ ASP.NET ISAPI
Ç°¼¸ÌìÓÐÒ»¸öÅóÓÑÔÚMSNÉÏÎÊÎÒ“ASP.NET ´Ó×î³õµÄ½ÓÊÕµ½Http requestµ½×îÖÕÉú³ÉResponseµÄÕû¸öÁ÷³Ìµ½µ×ÊÇÔõÑùµÄ£¿”ÎÒ¾õµÃÕâ¸öÎÊÌâÉæ¼°µ½IISºÍASP.NETASP.NET Runt ......
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>" ); } ......
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: Òƶ¯µ½ÉÏÒ»ÊéÇ©
......
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 ......