ASP.NETʵÏÖÔöɾ¸Ä²éµÈ¹¦ÄÜ(Access°æ)ϵͳ֮ËÄ É¾³ý
//¸ù¾ÝÖ÷¼üÀ´É¾³ý±íÖеÄÊý¾Ý¡£
//ɾ³ý
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
OleDbConnection sqlConnection = new OleDbConnection(GetConnection());
string sqlstr = "delete from MResume where id=" + GridView1.DataKeys[e.RowIndex].Value.ToString() + "";
OleDbCommand sqlcom = new OleDbCommand(sqlstr, sqlConnection);
sqlConnection.Open();
sqlcom.ExecuteNonQuery();
sqlConnection.Close();
//PopulatePublishersGridView();
string sqlstr2 = getSQlStr();
bind(sqlstr2);
}
Ïà¹ØÎĵµ£º
VS ASP.NETÉèÖöϵã ÎÞ·¨µ÷ÊÔ
ÎҵĿª·¢¹¤¾ßVS2005 IEä¯ÀÀÆ÷ÊÇ8.0£¬ÉèÖöϵãÖ®ºó²»Äܵ÷ÊÔ¡£
Ò»°ã»áÓÐÁ½ÖÖ¿ÉÄÜ£º
Ò»¡¢web.config debugÊôÐÔÉèÖÃΪTRUE
<compilation debug="true" />
¶þ¡¢IE8µÄÎÊÌâ
ÐÞ¸Ä×¢²á±í£ºHKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
ÐÂÔöÃû³ ......
½ñÌì¾À½áÁËÒ»ÉÏÎçµÄÎÊÌ⣬ÓÚÏÂÎç3µã12·Ö³¾°£Â䶨£¡
ÊÂÇéÊÇÕâÑùµÄ£º
×÷Ϊһ¸öÀï³Ì±®¼Ç¼Ï°ɣ¬Ò²ËãÊÇÎÒµÚÒ»´Î½«asp.netÓëÊý¾Ý¿â½áºÏ£¬²¢Íê³É´ÓÈí¼þ±à³Ìµ½webµÄ¹ý¶É¡£
Ôڴ˸Ðл½ñÌìΪÎÒ½â¾öÎÊÌâµÄ“ɱÊÖ”£¨Ò²³ÆÀϵÀ£©£¬»¹ÓÐÒÔǰΪÎÒ½â¾öÎÊÌâµÄ´ó¶Ó¡¢Óù·ç¡¢»ª¸çµÈÅ£...
ÑÔ¹éÕý´«£¬±¾ÎĽéÉÜÒ»ÏÂÔõÑùÔÚasp. ......
Global.asaxÎļþ£¬ÓÐʱºò½Ð×öÓ¦ÓóÌÐòÎļþ£¬ÌṩÁËÒ»ÖÖÔÚÒ»¸öÖÐÐÄλÖÃÏìÓ¦Ó¦ÓóÌÐò¼¶»òÄ£¿é¼¶Ê¼þµÄ·½·¨¡£Äã¿ÉÒÔʹÓÃÕâ¸öÎļþʵÏÖÓ¦ÓóÌÐò°²È«ÐÔÒÔ¼°ÆäËüһЩÈÎÎñ¡£ÏÂÃæÈÃÎÒÃÇÏêϸ¿´Ò»ÏÂÈçºÎÔÚÓ¦Óù¤×÷ÖÐʹÓÃÕâ¸öÎļþ¡£
¸ÅÊö
Global.asaxλÓÚÓ¦ÓóÌÐò¸ùĿ¼Ï¡£ËäÈ»VisualStudio.NET»á×Ô¶¯²åÈëÕâ¸öÎ ......
ºǫ́Êý¾Ý¿â£º
[Microsoft Access]
Óë
[Microsoft Sql Server]
¸ü»»Ö®ºó£¬ASP´úÂëӦעÒâÒªÐ޸ĵÄһЩµØ·½£º
[Ò»]Á¬½ÓÎÊÌ⣨¾ÙÀý)
[Microsoft Access]
constr = "DBQ=c:\data\clwz.mdb; DRIVER={Microsoft Access Driver (*.mdb)}"
[Microsoft Sql Server]
constr = "DRIVER={SQL Server};SERVER=host;DATA ......
//Ïêϸ½éÉÜasp.net»ñÈ¡ÈÕÆÚʱ¼äµÄ¸÷ÖÖ¸ñʽµÄº¯Êý
DateTime.Now.ToLocalTime().ToString(); // 2009-9-5 20:12:12
//»ñÈ¡ÈÕÆÚ
DateTime.Now.ToLongDateString().ToString(); // 2009Äê9ÔÂ5ÈÕ
......