ASP.NET ¶ÁÈ¡TXTÎĵµµÄÖµ - .NET¼¼Êõ / ASP.NET
RT ÎÒÏÖÔÚÒªÅúÁ¿µÄÍùÊý¾Ý¿âÌí¼ÓÊý¾Ý£¬Êý¾ÝÊÇ´Ó±ðµÄÍøÕ¾Éϸ´ÖÆÏÂÀ´µÄ£¬ÏëÓÃTXTÎĵµ£¬Çó½âÔõôÓÃ.NET¶ÁÈ¡TXTÎĵµ
»ù±¾µÄio²Ù×÷
ÄÜÌùÏ´úÂëÂð£¬
string ss = File.ReadAllText("D:\\1.txt");
£©´´½¨txtÎļþ¡¾web.config¡¿
--------------------------------------------------------------------
<appSettings>
<add key="EditChars" value="D:\Site\ZJPS\TextFile\EditChars.txt"/>
</appSettings>
2) Ò³ÃæµÄCSÎļþÖУº
--------------------------------------------------------------------
¡¾1¡¿ »ñÈ¡txtÎļþλÖ㺠protected string FileName = System.Configuration.ConfigurationManager.AppSettings["EditChars"].ToString();
¡¾2¡¿ Îļþ²Ù×÷£º´´½¨¡¢Ð´¡¢¶Á Îļþ¡£
#region Îļþ²Ù×÷
/// <summary>
/// ´´½¨txtÎļþ
/// </summary>
public void CreateToFile()
{
StreamWriter SW;
SW = File.CreateText(FileName);
SW.Close();
}
/// <summary>
/// дÎļþ
/// </summary>
public void WriteToFile()
{
string InsertStr = "";
if (!File.Exists(FileName))
{
Ïà¹ØÎÊ´ð£º
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......
¹ØÓÚÍøÕ¾°²È«µÄÎÊÌ⣡
ÎÒÁ˽⵽µÄÍøÕ¾°²È«ÎÊÌâ°üÀ¨£º
sql×¢Èë©¶´ºÍ±©¿â©¶´»¹ÓÐÉÏ´«Â©¶´
³ýÁËÕâЩ»¹ÓÐÆäËûµÄ©¶´Ã´£¿
×¢Èë©¶´¿ÉÒÔͨ¹ý¹ýÂËÀ´·ÀÖ¹
±©¿â©¶´Ôõô·ÀÖ¹
»¹ÓÐÈËÉÏ´«µÄľÂíÊÇ.gif
ÕâÖÖ©¶´Ôõôȥ± ......