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

asp.netÁ¬access

1¡¢¾ø¶Ô·¾¶Á¬½Ó×Ö·û´®
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\somepath\myDb.mdb
2¡¢Ïà¶Ô·¾¶Á¬½Ó×Ö·û´®
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/date/fghsdf.mdb")
¿ÉÒÔÓãº
web.config:
<appSettings>
 <add key="ConnectString" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source="/>
</appSettings>
csÀà:
public static string ConnectString = System.Configuration.ConfigurationManager.AppSettings["ConnectString"].ToString() + System.AppDomain.CurrentDomain.BaseDirectory + "/db/chatroom.mdb";
ASP.NET½áºÏACCESS½¨ÉèÍøÕ¾
ÒÔÇ°¶¼ÊÇÓÃasp.net ÓësqlServer2000 ½áºÏ×ö¶«Î÷µÄ£¬Õâ´ÎÊÇÓÃaccess£¬ËäÈ»ÊǵÚÒ»´ÎÓ㬵«¸Ð¾õÓësqlServer2000µÄÓ÷¨Çø±ð²»´ó£¬ÒÔ϶ԶþÕßµÄÓ÷¨×ö±È½Ï£º
¡¡¡¡SqlServer2000:
¡¡¡¡1>ÃüÃû¿Õ¼ä 
¡¡¡¡using System.Data;
    using System.Data.SqlDb;
  2>Á¬½ÓÓï¾äµÈ
¡¡¡¡Ö÷Òª¼Ç¼AccessÓ÷¨£º
  1>ÃüÃû¿Õ¼ä£º
¡¡¡¡using System.Data;
¡¡¡¡using System.Data.OleDb;
  2>Á¬½ÓÓï¾ä£º
CODE:
string conString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=";
    conString+=Server.MapPath(@"\Jlgps\DB\Jlgps.mdb");
//ÒÔÉÏÓï¾äÖУ¬“@”±íʾ¾ø¶ÔµÄ×Ö·û´®£¬Ò²¾ÍÊÇ˵"\"ÔÚÕâ¾Í²»ÐèÓÃ"\\"À´±íʾÁ˵ÚÒ»¸ö"\"±íʾÊÇ´Ó¸ùĿ¼(ÈçC:\Inetpub\wwwroot)ÏÂÕÒ"Jlgps"Õâ¸öĿ¼,Èç¹û²»¼Ó"\"±íʾ´Óµ±Ç°Ó¦ÓóÌÐòĿ¼ÏÂ(Jlgps)ÕÒ£¬ÄÇôÕâÀï¾ÍҪд³É@"DB\Jlgps.mdb"ÁË.½¨ÒéÓúóÕߣ¬Ç°ÕßÈ¡³öÀ´¿ÉÄÜÊǾø¶Ô·¾¶£¬ºóÕßÔòÊÇÏà¶Ô·¾¶£¬³ö´í¼¸ÂʽÏС¡£
¡¡¡¡OleDbConnection con=new OleDbConnection(conString);
¡¡¡¡con.Open();//ÕâÑùÊý¾Ý¿âÁ¬½ÓÍê±Ï¡£
  3>ÃüÁî¶ÔÏó£º
¡¡¡¡´óÖÂÓ÷¨ÓësqlServerµÄÏàͬ£¬Ö»ÊÇÃû³ÆÓеã±ä»¯£º
¡¡¡¡sqlserverµÄÒÔSql¿ªÍ·£¬ÈçSqlCommand cmd=new SqlCommand();
¡¡¡¡¶øaccessµÄ¶¼ÒÔ OleDb¿ªÍ·£¬È磺OleDbCommand,OleDbDataReader....µÈ
  4>Éæ¼°µ½accessÊý¾Ý¿âµÄÓû§ÃûºÍÃÜÂëµÄÎÊÌ⣺
¡¡¡¡¿ªÊ¼ÎÒµÄaccessµÄmdbÎļþûÓÐÉèÖÃÓû§ÃûºÍÃÜÂ룬ÓÃÒÔÉϵÄÁ¬½ÓÓï¾ä¿ÉÒÔÁ¬½Ó³É¹¦£¬ºóÀ´ÎÒÏëΪÁËÉÔ΢°²È«µã£¬ÏëÉèÖÃÊý¾Ý¿âmdbÎļþµÄ´ò¿ªÃÜÂ룬ÓÚÊÇÎÒ±ã´ò¿ªmdbÎļþ£¬ÔÚ"¹¤¾ß",-"°²È«"-"ÉèÖÃÊý¾Ý¿âÃÜÂë"ÖÐÉèºÃÁËÃÜÂë


Ïà¹ØÎĵµ£º

ASP.NET·¢ËÍEmail¾«¼ò°æ

using System.Net;
using System.Net.Mail;
using System.Text;
    #region ·¢ËÍEmail
    public void sendEmail()
    {
        #region ÑéÖ¤email
        SmtpClient smtp = new SmtpCl ......

¹ØÓÚASP.NetµÄvalidateRequest=false£¨ÑéÖ¤ÇëÇó£©

ASP.NetµÄvalidateRequest=false
      validateRequest="false"   Ö¸ÊÇ·ñÒªIISÑéÖ¤Ò³ÃæÌá½»µÄ·Ç·¨×Ö·û£¬±ÈÈ磺>,<ºÅµÈ,µ±ÎÒÃÇÐèÒª½«Ò»¶¨¸ñʽµÃhtml´úÂë»ñµÃ£¬²åÈëÊý¾Ý¿âʱºò£¬¾ÍÒª½«Õâ¸öÊôÐÔÉèÖÃΪfalse,ÀýÈçÄ㽫×ÖÌå¼Ó´ÖµÈ²Ù×÷ʱ¡£
   
ASP.Net 1.1ºóÒýÈëÁË ......

AJAXµ÷Óà ASP.net ±¾µØÎļþϵͳµÄ¹ÖÎÊÌâ

×î½ü¿ª·¢ExtÓ¦Óã¬Ê¹ÓÃajaxÇëÇóÊý¾Ýʱ£¬Óöµ½ÁËÇëÇóÊý¾ÝÒÔ·µ»Ø£¬µ«IEÀïÈ´ÎÞ·¨ÏÔʾµÄ¹ÖÎÊÌâ¡£
ʹÓÃHTTPWatch²é¿´£¬·¢ÏÖERROR_INTERNET_CONNECTION_RESET¡£
ʹÓÃFireFoxºÍgoogleä¯ÀÀÆ÷¶¼Ã»ÓÐÎÊÌ⣬ÍøÉϲéÕÒ˵ÍøÕ¾·ÅÔÚIISÉÏûÓÐÎÊÌ⣬ÊÔÑéºóÖ¤Ã÷ÓÐЧ¡£
µ«Í¬Ê¿ª·¢Óûú´ó²¿·Ö¶¼ÊÇXPϵͳ£¬Óв¿·Ö»¹ÊÇHOME°æ£¬Òò´Ë¸ÃÎÊÌâ±ØÐëÕÒµ ......

ASP.NET MVC¿ò¼Ü,ajax,jquery¿ª·¢ÏµÁпγÌ

http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/Series/MVC.aspx
http://www.cnblogs.com/chsword/archive/2009/03/11/zd_mvc1.html
jQuery¿ò¼Üѧϰ:http://www.zz68.net/WebDesign/js/200907/0H611P2009.html
ASP.NET ÖеÄÉè¼Æģʽ֮MVCƪ:http://www.cnblogs.com/superhasty/archive/2005/06/08 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ