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

asp.net Ò³Ã澲̬»¯·½°¸

ÔÚ×î½üµÄÓÃasp.net ¿ª·¢µÄÏîÄ¿ÖУ¬×öÓÅ»¯£¬Òª°ÑÒ³Ã澲̬»¯£¬²éÁ˺ܶàÖÖ·½·¨£¬×îºóÑ¡ÔñÁËÓÃÄ£°åÀ´ÊµÏÖ£¬
×îÖÕÒ³µÄʵÏֱȽϼòµ¥£¬ÔÚÍøÉÏÕÒÁËÒ»¶Î´úÂ룬µ«Ê×Ò³£¬¶þ¼¶Ò³£¬ÁбíÒ³µÄ´¦Àí±¾ÈËÊÇÓõÄÒÔÏ·½°¸£¬ÏÖÔÚ»¹Ö»ÊÇÒ»¸ö±È½Ï¼òµ¥µÄ£¬Ï£ÍûÓдó¼Ò¶à¶àÖ¸µã£¬½»Á÷£»
·½·¨ÈçÏ£º
   ˼·ÃèÊö£º
    1£¬ÔÚÄ£°åÖÐ×Ô¼ºÐ´Ñ­»·£¬Í¨¹ýasp.net ¶ÁÈ룬ÔÙ½âÎö£»
    2£¬ÔÙ°´Ñ­»·Ìõ¼þµ½Êý¾Ý¿â¶ÁÈ¡Êý¾Ý£¬ÓÃÌ滻ѭ»·ÄڵıäÁ¿£»
    3£¬×îºó·µ»ØÌæ»»ºóµÄ×Ö·û´®£¬Éú³É¾²Ì¬Îļþ£»
Ä£°åÑùʽ´úÂ룺
 #foreach{News_Article;row_number() over(order by News_CreateTime desc) as rowNumber,News_Type,News_Title,News_HtmlFileName,News_Count;limit(0,1)|order(News_CreateTime desc)|types(in('0103'))|important(in('1'))|isnominate(1)|style(1)|define()}
<li>
<div class="sx">$News_Article.rowNumber</div>
<a href="$News_Article.News_HtmlFileName" target="_blank" title="$News_Article.News_Title;[µã»÷Êý£º$News_Article.News_Count]">$News_Article.News_Title</a>
</li>
#endforeach
ÁбíÒ³Ñùʽ´úÂ룺
#foreach{News_Article;row_number() over(order by News_CreateTime desc) as rowNumber,News_Type,News_Title,News_HtmlFileName,News_Count;limit(0,1)|order(News_CreateTime desc)|types(not in ('0104'))|important(not in('0'))|isnominate(1)|style(1)|define();page(20)}
<li>
<div class="sx">$News_Article.rowNumber</div>
<a href="$News_Article.News_HtmlFileName" target="_blank" title="$News_Article.News_Title;[µã»÷Êý£º$News_Article.News_Count]">$News_Article.News_Title</a>
</li>
#endforeach
˵Ã÷£º#foreach  #endforeach ÕâÊÇ×Ô¶¨ÒåÑ­»·Ì壬News_ArticleÊý¾Ý¿â±íÃû£¬
row_number() over(order by News_CreateTime desc) as rowNumber,News_Type,News_Title,News_HtmlFileName,News_Count;ÏÔʾ×Ö¶ÎÃû£¬
limit(0,1)|order(News_CreateTime desc)|types(in('0103'))|important(in('1'))|isnominate(1)|style(1)|define()Ìõ¼þ
page(20)·ÖÒ³ÌõÊý£»
$News_Article.rowNumberÑ­»·Ìå±äÁ¿
´¦Àí·½·¨£º
 /// <summary>
    


Ïà¹ØÎĵµ£º

asp.netÁ´½ÓAccessÊý¾Ý¿â×Ö·û´®ÕýÈ··½·¨

ÔÚweb  configÖР ×÷ÈçÏÂÅäÖãº
<connectionStrings>
    <add name="ydycon" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=|DataDirectory|ydy.mdb" providerName="System.Data.OleDb"/>
 
  </connectionStrings>
ÔÚ.netÎļþÖÐÓ¦ÓÃÁ´½Ó ......

´úÂë±àд¹æ·¶ËµÃ÷Ê飨c#.netÓëasp.net£©

1   Ä¿µÄ
2   ·¶Î§
3   ×¢Ê͹淶
3.1   ¸ÅÊö
3.2   ×Ô½¨´úÂëÎļþ×¢ÊÍ
3.3   Ä£¿é£¨ÀࣩעÊÍ
3.4   ÀàÊôÐÔ×¢ÊÍ
3.5   ·½·¨×¢ÊÍ
3.6   ´úÂë¼ä×¢ÊÍ
4   ......

½÷É÷Asp.netÖÐstatic±äÁ¿µÄÓ÷¨

ÔÚ.Netƽ̨ϽøÐÐCSÈí¼þ¿ª·¢Ê±,ÎÒÃǾ­³£Óöµ½ÒÔºó»¹ÒªÓõ½Ä³Ð©±äÁ¿ÉÏ´ÎÐ޸ĺóµÄÖµ,ΪÁ˼òµ¥Æð¼û,ºÜ¶àÈ˶¼Ï°¹ßÓÃstaticÀ´¶¨ÒåÕâЩ±äÁ¿,ÎÒÒ²ÊÇ¡£ÕâÑù·Ç³£·½±ã£¬ÏÂÒ»´Îµ÷ÓÃij¸öº¯Êýʱ¸Ã±äÁ¿ÈÔÈ»±£´æµÄÊÇ´¦Àí¹ýµÄÖµ£¬Ö±½ÓÄÃÀ´ÓþͿÉÒÔÁË¡£
        ÏÖÔÚתÈëÁËBSÈí¼þ¿ª·¢£¬ÎÒÃǺÜ×ÔÈ»µØ»áÑØÓ ......

ÔÚasp.netÖÐÉú³ÉhtmlÎļþ´úÂëÈçÏÂ


ÔÚasp.netÖÐÉú³ÉhtmlÎļþ´úÂëÈçÏÂ
public static bool CreatHtmlPage(string[] strNewsHtml, string[] strOldHtml, string strModeFilePath, string strPageFilePath)
        {
            bool Flage = false;
  ......

asp.net¼¸¸öÊÇÓú¯Êý


/// <summary>
  
/// µÃµ½Õ¾µãÓû§IP
  
/// </summary>
  
/// <returns></returns>
  
public
 
static
 
string
 getUserIP()   
{   
    
retu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ