asp.net̽Õë·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà
·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà ³Ë·çÏÖÓÐÔ´´³ÌÐò³Ë·ç¹ã¸æÁªÃËϵͳ³Ë·ç¶àÓû§¼ÆÊýÆ÷ ³Ë·ç¶àÓû§PHPͳ¼ÆÏµÍ³ ³Ë·çµçÓ°³ÌÐò³Ë·çÍøÖ·³ÌÐò³Ë·ç¹ã¸æ¹ÜÀíϵͳ³Ë·çasp.net̽Õë·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà using System;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
namespace yueying.Components
{
/// <summary>
/// DBClass µÄժҪ˵Ã÷¡£
/// </summary>
public class DBClass
{
protected static string strConn = ConfigurationSettings.AppSettings["strConn"];
public DBClass()
{
//
// TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼
//
}
//¹¦ÄÜ:Ö´ÐÐsqlÓï¾ä,·µ»Øbool
internal bool ExecuteSql(string strSQL)
{
bool success=false;
OleDbConnection conn = new OleDbConnection(strConn);
OleDbCommand myCmd = new OleDbCommand(strSQL,conn);
try
{
conn.Open();
myCmd.ExecuteNonQuery();
success=true;
}
catch(System.Data.OleDb.OleDbException e)
{
throw new Exception(e.Message);
}
finally
{
myCmd.Dispose();
conn.Close();
}
return success;
}
//¹¦ÄÜ:Ö´ÐÐsqlÓï¾ä,Èç¹ûÓмǼµÄ»°·µ»Ø1,·ñÔò·µ»Ø0
internal int ExecuteSqlDr(string strSQL)
{
OleDbConnection myCn = new OleDbConnection(strConn);
OleDbCommand myCmd = new OleDbCommand(strSQL,myCn);
try
{
myCn.Open();
OleDbDataReader myDr = myCmd.ExecuteReader();
if(myDr.Read())
{
Ïà¹ØÎĵµ£º
²½Öè1£º
ÐÞ¸Äwin2003ÉÏ´«ÏÞÖÆ£¬ÕÒµ½windows\system32\inserv\metabase.xmlÎļþ
½«ÆäÖеġ¡aspmaxrequestentityallowed= µÄÖµ¸ÄΪ1073741824¡¡£¨1G£©
×¢ÒâÐÞ¸ÄǰҪֹͣIISµÈ·þÎñ¡£
²½Öè2£º
Èç¹ûÄã×°µÄÊÇnet1.1£¬ÇëÕÒµ½windows\...\v1.1.4322\config\machina.configÎļþ£¬½«execution timeout¸ÄΪ36000
½ ......
Asp.Net¹¹¼Ü(HttpÇëÇó´¦ÀíÁ÷³Ì) - Part.1
ÒýÑÔ
ÎÒ²éÔĹý²»ÉÙAsp.NetµÄÊé¼®£¬·¢ÏÖ´ó¶àÊý×÷Õß¶¼ÊÇÕ¾ÔÚÒ»¸ö±È½Ï¸ßµÄ²ã´ÎÉϽ²½âAsp.Net¡£ËûÃÇÄÍÐÄ¡¢Ï¸ÖµظæËßÄãÈçºÎÒ»²½²½ÍϷſؼþ¡¢ÉèÖÿؼþÊôÐÔ¡¢±àдCodeBehind´úÂ룬ÒÔʵÏÖij¸öÌØ¶¨µÄ¹¦ÄÜ¡£
ÕâÖÖ×ö·¨£¬Êµ¼ÊÉÏÊǻشðÁË“ÈçºÎÈ¥×ö”µÄÎÊÌ⣬ȴûÓлشð“ÎªÊ ......
»·¾³£º
Windows 2008, VS 2008 SP1, Asp.Net Mvc RC1
------------------------------------------------------------------------------
ÉÏÎÄ£ºAsp.Net Mvc: Model Binding »úÖÆ·ÖÎö ÖУ¬ÎÒÃǼòµ¥·ÖÎöÁËAsp.Net MvcÖÐModel BindingµÄ¹ý³Ì£¬·Ç³£´Ö²Ú£¬±¾ÎĽ«Ì½Ë÷ÈçºÎʵÏÖÒ»¸ö×Ô¼ºµÄModelBinder£¬²¢½øÒ»²½Õ¹Ê¾Ç°Îĺ ......
string[] files = Directory.GetDirectories(Server.MapPath("Themes/"));
ÏÈÉùÃ÷ÁËÒ»¸ö×Ö·ûÊý×飬mapPath·½·¨µÃµ½µÄÊÇÒ»¸ö¾ø¶Ô·¾¶¡£
ÒòΪGetFiles·µ»ØµÄÊÇÒ»¸östring[]Êý×飬ËùÒÔÓà filesÀ´½ÓÊÕËü¡£
È»ºóÎÒÃÇÔÚÓÃÒ»¸öforeachÑ»·À´±éÀúÕâ¸öÊý×飬ȡ³öËùÓÐÖµ¡£
foreach (string file in files)
{
Response.W ......