ASP.NETÁ¬½Ó×Ö·û´®
1.Êý¾Ý¿âÎļþÁ¬½Ó
<add name="LocalSqlServer" connectionString="Data
Source=.\SQLExpress;Integrated
Security=True;
AttachDBFilename=|DataDirectory|TimeTracker.mdf;User
Instance=true" />
Ò». integrated security=trueΪwindowsÓû§ÑéÖ¤£¬¶øΪfalseʱΪÊý¾Ý¿âÉí·ÝÑéÖ¤£¨ÐèuidºÍpwd£©
¶þ. AttachDBFilenameΪÁ¬½ÓÊý¾Ý¿âÎļþµØÖ·£¬|DataDirectory|Ó﷨ΪÊý¾Ý¿â·¾¶Ìæ»»×Ö·û´®£¬¼´Ìæ»»App_DataÎļþ¼Ð·¾¶£¬ÕâÑù¾Í²»ÐèÒªÖ¸
¶¨¾ø¶Ô·¾¶
Èý. User Instance = true, ָʾÊÇ·ñ½«Ä¬ÈϵÄExpressʵÀýÖض¨Ïòµ½µ÷ÓÃÕË»§Ï²¢ÔÚÔËÐÐʱÆô¶¯ÊµÀý
2.Êý¾Ý¿â·þÎñÆ÷Á¬½Ó
<add name="ConnectionString1" connectionString="Integrated Security=SSPI;Initial Catalog=master;Server=(local);" providerName="System.Data.SqlClient"/>
Ïà¹ØÎĵµ£º
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: Òƶ¯µ½ÉÏÒ»ÊéÇ©
......
ͨ¹ýʹÓà ASP.NET ÑéÖ¤¿Ø¼þ£¬¿ÉÒÔʹÓÃÂß¼ÔËËã·û¶ÔÕÕÒ»¸öÌض¨ÖµÀ´ÑéÖ¤Óû§ÊäÈë¡£ÀýÈ磬Äú¿ÉÒÔÖ¸¶¨Óû§ÊäÈë±ØÐëÊÇ“1950 Äê 1 Ô 1 ÈÕ”Ö®ºóµÄÈÕÆÚ£¬»òÊÇÒ»¸ö´óÓÚµÈÓÚ 0 µÄÕûÊýÖµ¡£»òÕߣ¬Äú»¹¿ÉÒÔÖ¸¶¨½«Óû§ÊäÈëÓëÁíÒ»¿Ø¼þµÄÖµ½øÐбȽϡ£
1¡¢½« CompareValidator ¿Ø¼þÌí¼Óµ½Ò³Ö ......
Ô´ÂëÏÂÔØ£ºhttp://www.tracefact.net/SourceCode/Asp-Net-Paging-Control.rar
Asp.Net ·ÖÒ³ÏÔʾ¿Ø¼þ
ÕâƪÎÄÕÂ×ʼÊÇ2008Äê2Ô·ÝдµÄ£¬ÎÒÆð³õÏë×Å´ó¼ÒÓ¦¸Ã¶¼ÓÐ×Ô¼ºµÄÊý¾Ý·ÖÒ³·½Ê½£¬¶øÎÒ±¾È˲¢·Çרҵ×ö¿Ø¼þ¿ª·¢£¬ËùÒÔÖ»ÊÇÏë×ÅÌṩµã˼·£¬²¢Ã»ÓÐ×ö̫ϸÖµÄÑо¿¡£½á¹û¸ù¾Ýä¯ÀÀÁ¿·¢ÏÖ´ó¼Ò»¹ÊDZȽϹØ×¢µÄ£¬ÓÚÊǾͳé¿Õ¶ ......
¡ïAsp.netÈçºÎÁ¬½ÓSQL Server2000Êý¾Ý¿â¡ï
´ó¼ÒºÃ,ÒÔÏÂÊÇÓйØASP.netÁ¬½ÓSQL Server2000Êý¾Ý¿âµÄÀý³Ì£¬
ÔÚÕâÀïºÍ´ó¼Ò·ÖÏíһϣº
Asp.netÁ¬½ÓSQL Server2000Êý¾Ý¿âÀý³ÌÏê½â:
<%@ Import Namespace="System.Data" %>
<%@ Import NameSp ......