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

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())
    {


Ïà¹ØÎĵµ£º

ASP.NET MVC£ºÈçºÎʵÏÖÒ»¸ö×Ô¼ºµÄModelBinder£¿

»·¾³£º
Windows 2008, VS 2008 SP1, Asp.Net Mvc RC1
------------------------------------------------------------------------------
ÉÏÎÄ£ºAsp.Net Mvc: Model Binding »úÖÆ·ÖÎö  ÖУ¬ÎÒÃǼòµ¥·ÖÎöÁËAsp.Net MvcÖÐModel BindingµÄ¹ý³Ì£¬·Ç³£´Ö²Ú£¬±¾ÎĽ«Ì½Ë÷ÈçºÎʵÏÖÒ»¸ö×Ô¼ºµÄModelBinder£¬²¢½øÒ»²½Õ¹Ê¾Ç°Îĺ ......

asp.netÈ¡Îļþ¼ÐÖÐËùÓÐÎļþÃû

string[] files = Directory.GetDirectories(Server.MapPath("Themes/"));
ÏÈÉùÃ÷ÁËÒ»¸ö×Ö·ûÊý×飬mapPath·½·¨µÃµ½µÄÊÇÒ»¸ö¾ø¶Ô·¾¶¡£
ÒòΪGetFiles·µ»ØµÄÊÇÒ»¸östring[]Êý×飬ËùÒÔÓà filesÀ´½ÓÊÕËü¡£
È»ºóÎÒÃÇÔÚÓÃÒ»¸öforeachÑ­»·À´±éÀúÕâ¸öÊý×飬ȡ³öËùÓÐÖµ¡£
foreach (string file in files)
{
Response.W ......

ASP.NET Events

Here is the full list of all events that occur in an ASP.NET application, from the standard modules, to the page, master page, page controls and master page controls.
I have not included the IIS 7 specific events (Log, for example).
What
When
HttpApplication.BeginRequest
HttpApplication.Auth ......

CKEditorºÍCKFinderÔÚASP.NETÖеÄÓ¦ÓÃ

½éÉÜ
CKEditorÊÇÐÂÒ»´úµÄFCKeditor£¬ÊÇÒ»¸öÖØпª·¢µÄ°æ±¾¡£CKEditorÊÇÈ«Çò×îÓÅÐãµÄÍøÒ³ÔÚÏßÎÄ×ֱ༭Æ÷Ö®Ò»£¬ÒòÆ侪È˵ÄÐÔÄÜÓë¿ÉÀ©Õ¹ÐÔ¶ø¹ã·ºµÄ±»ÔËÓÃÓÚ¸÷´óÍøÕ¾¡£¶øCKFinderÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄajaxÎļþ¹ÜÀíÆ÷¡£Æä¼òµ¥µÄÓû§½çÃæʹµÃ¸÷ÀàÓû§£¬²»¹ÜÊǴӸ߼¶×¨ÒµÈ˲ţ¬»¹ÊÇ»¥ÁªÍø³õѧÕߣ¬¶¼¹»Ö±¹Û¡¢¿ìËÙѧϰµÄѧϰʹÓÃËü¡£
& ......

Cascading DropDownLists With ASP.NET and jQuery


Cascading drop down lists is a really nice feature for web developers. I thought it was time to write an article on how to do this using ASP.NET and jQuery. Well here’s one way of doing it. Before we get started, this example uses the latest version of jQuery which is 1.3.2.&n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ