¸Õ¸ÕÃæÊÔasp.netÌâ
½ñÌìÈ¥ÃæÊÔ¸Õ¸Õ»ØÀ´£¬³ÃןղÅÌáÎʵÄÎÊÌ⻹ÔÚÄÔº£ÀÏÖÔڸϿìд³öÀ´·ÖÏí·ÖÏí£¬ÎʵÄÎÊÌâ±È½ÏµÄ¶à¡££¬µ¥È¦ÊǹØÓÚASP.netºÍËüÖܱߵļ¼ÊõÎÊÌ⣬ÎÒÓм¸¸ö¶¼Ã»»Ø´ðÉÏÀ´£¬ÐÞÁ¶²»¹»°¡
£¨1£©Ê×ÏÈÊÇÈÃÎÒ½éÉÜÒ»ÏÂ×Ô¼ºµÄÇé¿ö£º£ºÎҾʹӴóÒ»¿ªÊ¼Ëµ£¬Ñ§µ½µÄ¹ØÓÚÍøÂç¡¢Èí¼þÕâ·½ÃæµÄ֪ʶ£¬Ò»Ö±Ëµµ½´óËÄ£¬ÏÖÔÚÕÒ¹¤×÷£¬ÊDz»ÊÇȱÉÙɶÄØ£¿£¿¡£
£¨2£©ËµÒ»Ï£¬¶Ôasp.netµÄÁ˽â¶àÉÙ£º£ºÎҾͰÑÎÒÔõôѧµÄÔõô×öµÄ˵ÁËÏ£¬ÄÜÏëµ½µÄÒ»ÎѶ¼ËµÁ˳öÀ´
£¨3£©ËµËµÎÒËùÊìϤµÄasp.netµÄÀà¿â£¬ÍøÂç·½ÃæÓÐÄÄЩÀà¿â£º£ºÕâ¸ö¿ÉÄÑסÎÒÁË£¬ÎÒÒÔÇ°ÊDz»¼ÇÒäÄÇЩ¶«Î÷£¬ÀÏÊÇÔÚ°Ù¶ÈÉÏËÑË÷һϷ½·¨ÔÚÄĸöÀà¿â£¬ÔÙÌíÉÏ£¬Õâ´Îʧ°Ü£¬ÎÒ˵ÁËû¼¸¸ö£¬
£¨4£©ËµËµasp.netÓÐÄÄЩ¿Ø¼þ£¬³£Óõģ¬²¢ÇÒ˵˵ËûÃÇÓйصÄʼþ£º£ºÕâ¸öͦÈÝÒ׵ģ¬ÓõĶàµÄÄÜ˵³öÀ´£¬ÓõÄÉٵľÍûÌᣬʼþÒ²ÊÇ˵µÄ²»È«Ã棬ÃãÇ¿°Ñ
£¨5£©ËµËµasp.netÒ³ÃæÐ麯Êýµ÷ÓÃ˳Ðò£¨ºÃÏñÊÇ°ÉÎÒ¶ÔÕâ¸öÒ»µã¶¼²»Á˽⣩£¬»¹ÓÐaspxÒ³Ãæ±àÒëʱµÄÖ´ÐÐ˳Ðò£º£ºÎÒµÄÌ죬ÎÒÕâ¸öÒ»¸öÒ²²»»á£¬²ÒÁËѽ¡£ÒÔÇ°ºÃÏñ¿´¹ýûÔÚÒ⣬¿Éϧ¿Éϧ°¡
£¨6£©ËµËµasp.netÍøÕ¾¿ª·¢µÄÌص㣬ºÍËüÏà¹ØµÄ¼¼Êõ£º£ºÕâ¸öÂð£¬ÎÒ¾Í˵Á˺ܶ࣬Ƥ·ô¡¢Ä¸°æÒ³¡¢¿Ø¼þ¡¢×é¼þ¡¢Àà¿â¡¢»¹ÓÐdiv cssµÈ£¬ÎÒÖªµÀ¾ÍÕâЩ
£¨7£©ÎÊÄã˵˵.netµÄÀ¬»ø»ØÊÕ»úÖÆ£º£º£ºÕâ¸öÄÑËÀÎÒ£¬ÎÒ¸ù±¾¾Íû¿´¡£ÎÒÖ»ÖªµÀËüÊÇ×Ô¶¯»ØÊյģ¬»¹¿ÉÒÔдÎö¹¹º¯Êý£¬Ëü×Ô¼º»áµ÷Óá£
£¨8£©ÎÊÄãÁ˽âµÄasp.netÍøÒ³´«Öµ·½·¨Óм¸¸ö£¿
£¨9£©ÎÊÄãÁ˽âµÄDataSet£¬ DataAdapter£¬DataReader£¬µÈ×÷ÓúÍÇø±ð¡£
×îºóÈÃÎÒÎÊÎÊÌ⣬ÎÒÎÊÁËÏÂËû¹«Ë¾µÄ×´¿ö£¬¾Í½áÊøÁË£¬ÆäʵÎÒÄÜÎʺöàÎÊÌâÎÒµ±Ê±È´Ã»ÏëÆðÀ´£¬»ØÀ´ºó¾õµÃ¶àÎÊËûµãºÃÁË¡£ÎÒÏÈ°ÑÌâд³öÀ´£¬ÂíÉÏÕҴ𰸡£»¹²»ÖªµÀÄܲ»ÄÜÃæÊÔÉÏÄØ
Ïà¹ØÎĵµ£º
1¡¢ÔÚcompilation Ï£¬ÇëÉèÖÃdebug=false £¬ÈçÏ£º
default Language="c#" debug="false">
2¡¢ÇëʹÓÃServer.Transfer´úÌæResponse.Redirect¡£
3¡¢Ê¹ÓÃValidator¿Ø¼þ£¬ÇëÒª¾³£¼ì²éPage.IsValid¡£
4¡¢ÇëʹÓÃforeachÑ»·£¬¶ø²»ÊÇΪ×Ö·û´®µü´úÑ»·¡£
5¡¢ÇëʹÓÿͻ§¶ËÑéÖ¤·½Ê½(²»ÒªÃ¿´Î¶¼ÔÚ·þÎñ¶ËÑéÖ¤)¡£
6¡ ......
JS´úÂë:
<script type="text/javascript" languag ......
1. ʹÓÃQueryString±äÁ¿
¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private void Button1_Click(object se ......
¼ÇÈ¡¼Ç¼¼¯
create procedure getArticle
as
select * from Article_Content
GO
asp.net µ÷Ó÷½·¨
SqlConnection Conn = new SqlConnection();
Conn.ConnectionString = Data.Connstr();
Conn.Open();
......