ÓÃC#¿ª·¢ÅúÁ¿ACCESSÊý¾Ý¿âѹËõ³ÌÐò
ÏÂÃæ¸ø³öÁËʹÓÃC# ¿ª·¢µÄÒ»¸öѹËõACCESSÊý¾Ý¿âµÄ³ÌÐò
ÏñFolderBrowserDialog£¨ÓÃÓÚä¯ÀÀÑ¡ÔñÎļþ¼ÐµÄ¶Ô»°¿ò£©¡¢MessageBox£¨ÏûÏ¢´¦Àí¶Ô»°¿ò£©¡¢DirectoryInfo£¨Ä¿Â¼ÐÅÏ¢£¬¿ÉÓÃÓÚ´´½¨¡¢¼ì²âÊÇ·ñ´æÔڵȶÔĿ¼µÄ²Ù×÷£©¡¢FileInfo£¨ÎļþÐÅÏ¢£¬¿ÉÓÃÓÚÎļþµÄ¼ì²â¡¢ÎļþÐÅÏ¢µÄ»ñÈ¡¡¢¸´ÖƵȲÙ×÷£©¡¢DataGridView£¨Êý¾Ý±í¸ñ¿Ø¼þ£¬ÓÃÓÚÏÔʾÎļþÐÅÏ¢ÁбíÊý¾Ý£©¡¢DataRowView£¨¶ÔһЩÊý¾ÝÔ´ÐÅÏ¢½øÐÐɸѡ£¬ÅÅÐò£©¡¢System.Diagnostics.Process.Start£¨Æô¶¯ÆäËü³ÌÐò´ò¿ªÎļþ¼ÐĿ¼£©£¬ÏÂÃæ¾ÍÒÀ´Î½éÉÜÒ»ÏÂÔÚ´ËÈí¼þ¿ª·¢ÖÐÎÒ¶¼Ê¹Óõ½ÒÔÉϿؼþ¡¢¶ÔÏóµÄÄÄЩÄÚÈÝ¡£
Ò»¡¢FolderBrowserDialog£¨Îļþ¼Ðä¯ÀÀ¶Ô»°¿ò£©£¬ÔÚ´ËÈí¼þÖÐÓÃÓÚ´ò¿ªÑ¡ÔñÊý¾Ý¿â¸ùĿ¼»ò´ò¿ª´´½¨¡¢Ñ¡Ôñ±¸·ÝĿ¼£¬ÏÂÃæÊÇÁ½´¦Î»ÖõĴúÂëÏêϸ½éÉÜ¡£
1.Ñ¡ÔñÊý¾Ý¿âĿ¼£¬ÔÚ´Ë´¦²»ÐèҪн¨Îļþ¼Ð£¬Òò´ËÆÁ±Îн¨Îļþ¼Ð°´Å¥¡£
C#´úÂë
FolderBrowserDialog df = new FolderBrowserDialog();
//ÉèÖÃÎļþä¯ÀÀ¶Ô»°¿òÉϵÄÃèÊöÄÚÈÝ
df.Description = "Ñ¡ÔñËùÓÐÊý¾Ý¿âÎļþËùÔÚ¸ùĿ¼µØÖ·";
//²»ÏÔʾ¶Ô»°¿òÏ·½µÄ´´½¨ÐÂÎļþ¼Ð°´Å¥
df.ShowNewFolderButton = false;
/*
ÅжÏÊÇ·ñÒÑÖ±½ÓÊäÈëÎļþ¼ÐĿ¼µØÖ·£¬Èç¹û´æÔÚÔò½«´ËÖµ¸³ÓÚ¶Ô»°¿òµÄÒÑÑ¡µØÖ·£¬ÕâÑù¾Í¿ÉÒÔÈöԻ°¿òÏÔʾÄúÉÏ´ÎÑ¡Ôñ»òÌí¼ÓµÄĿ¼µØÖ·ÁË¡£
*/
if (tBoxDbRoot.Text != "")
{
df.SelectedPath = tBoxDbRoot.Text;
}
else
Ïà¹ØÎĵµ£º
protected void Page_Load(object sender, EventArgs e)
{
try
{
&nbs ......
C#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃ
ÎÊ£º
1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
ÎÊÌâ1´ð°¸ÈçÏ£º
javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò»¸ö°´Å¥£¬ÔÚºǫ́½«µ÷Óûò´¦ÀíµÄÄÚÈÝдÈëbutton_clickÖÐ ......
ASP.NETÈçºÎÁ¬½ÓAccess»òSQL ServerÊý¾Ý¿â
Ê×ÏÈ¿´Ò»¸öÀý×Ó´úÂëÆ¬¶Ï:
³ÌÐò´úÂë:
--------------------------------------------------------------------------------
using System.Data;
using System.Data.OleDb;
......
string strConnection="Provider=Microsoft.Jet.OleDb.4.0;";
strConnection+ ......
http://www.cnblogs.com/byeday/archive/2009/10/04/1578034.html
ÎÊÌ⣺“Failed to access IIS metabase”½â¾ö
2009-08-14 17:03
ÔÒò£ºIISûÓÐ×¢²á
½â¾ö°ì·¨£º
ÔÚCMDÖнøÈëĿ¼C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727£¬ÔËÐÐaspnet_regiis
1¡¢aspnet_regiis -ga administrator£¨administratorΪµ ......