ASP.NETÁ¬½ÓÊý¾Ý¿âµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET
ÔÚSql server 2005ÖÐÊý¾Ý¿âdb_09Á¬½ÓÕý³££¬µ«ÊÇÔÚVS2008ÖУ¬×öÒ»¸öCommand¶ÔÏó²éѯÊý¾Ý£¬È´³öÏÖ´íÎó£¿Çë´ó¼Ò°ï°ïæ ÔÚWeb.configÎļþÖÐÅäÖÃÈçÏ <appSettings> <add key="ConnectionString" value="HG\SQLEXPRESS;database=db_09;UId=sa;password=''"/> </appSettings> ÔËÐÐÊÇÓÐÈçÏ´íÎó£º Òì³£ÏêϸÐÅÏ¢: System.ArgumentException: ²»Ö§³Ö¹Ø¼ü×Ö: ¡°hg\sqlexpress;database¡±¡£ Ô´´íÎó: ÐÐ 24: { ÐÐ 25: string myStr = ConfigurationManager.AppSettings["ConnectionString"].ToString(); ÐÐ 26: SqlConnection myConn = new SqlConnection(myStr); ÐÐ 27: return myConn; ÐÐ 28: }
service=localhost;database=db_09;UId=sa;password='' service=HG\SQLEXPRESSÒýÓà service=HG\SQLEXPRESS Õý½â£¬Ì«´ÖÐÄÁË°ÉÒýÓà service=HG\SQLEXPRESS service£¿£¿£¿ ÊÇ Data Source »ò Server °É... XML code: <add key="ConnectionString" value="Data Source=HG\SQLEXPRESS;database=db_09;UId=sa;password=''"/> or XML code: <add key="ConnectionString" value="Server=HG\SQLEX
Ïà¹ØÎÊ´ð£º
C# code: SqlConnection conn = CsDB.sqlcon(); SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌⶼ¸ÄºÃÁË£¬ ¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......
1.asp.net×öµÄÒ»¸ö´ðÌâÒ³Ã棬ÈçºÎʵʱÏÞʱºó×Ô¶¯Ìá½»£¬Çë´ó¼Ò¸øµã˼· ÏÞʱµÄʱ¼äÐÅÏ¢´æ·ÅÔÚÊý¾Ý¿âÖÐ 2.Èç¹û´ðÌâʱ¼äÉèÖõĽϳ¤£¬ÈçºÎ·½Ê½session³¬Ê±ºóÒ³ÃæÎÞЧ лл ÓÃjs·½·¨À´¿ØÖÆ »Ø¸´ÄÚÈÝÌ«¶ÌÁË¡£¡£ js ......
sqlserverµÄÊý¾Ý¿â£¬×Ö¶ÎÊÇimageÀàÐ͵ġ£Ôõôд´úÂ룬ÔÚÒ³ÃæÖеã»÷¡°ÏÂÔØ¡±¾ÍÄÜ´ò¿ªÄǸöÏÂÔضԻ°¿ò£¿ PS£ºOracleLob ÔÚsqlserverÀïÊÇʲô£¿ Response.Redirect("test.jpg") ÒýÓà Response.Redirect( ......