ASP.NETα¾²Ì¬
ʹÓû·¾³£ºWindows XP Professional
¿ª·¢Æ½Ì¨£ºNET2.0,VS2005
ÒѾ¹ý²âÊÔ,ʵÏÖÁËα¾²Ì¬¼¼ÊõµÄʵÏÖ,¿ÉÒÔʵÏÖÖîÈçShow.aspx?MyID=1³É¹¦×ª»»Îª1.htmlµÄת»»,ÏÖÔÚ½«³É¹ûÓë´ó¼Ò·ÖÏíһϣº
ÒýÈ룺ÎÒÃÇΪʲô²»Ö±½ÓʹÓÃShow.aspx?MyID=1ÕâÖÖ·ÃÎÊ·½Ê½¶ø·ÇҪʹÓÃ1.htmlÕâÑùµÄ·ÃÎÊ·½Ê½ÄØ,Ò²ÐíºÜ¶àÈ˶¼¾õµÃûÓбØÒªÔÙ½²½âÏÂÈ¥,µ«ÊÇСµÜÒ²ÊdzõѧÕß,¿¼Âǵ½ºÜ¶àÏÖÔÚºÍÎÒÒ»ÑùˮƽµÄ°®ºÃÕß,¶¼Ôø¾Îª´Ë·³ÄÕ²»ÒÑ,»òÕßÕýÔÚ³¢ÊÔÎÞÊý´Î¶øδ¹û,Òò´Ë,´ËÎĽöÕë¶Ô²ËÄñ¼¶µÄͬ°ûÃÇ,Ï£Íû¶ÔÄãÃÇÓÐËù°ïÖú,ÖÁÓÚ´ïÈËÃÇ¿´µ½ÁË,Ï£ÍûÌá³ö¸ü¶àµÄ±¦¹óÒâ¼û»ò½¨Òé,ÒÔ×ɹÄÀø±¾Ð¡Ïº,ÒÔ×ÉΪ¸ü²ËµÄСϺÃÇÌṩ¸ü¶àµÄ¸ü¼òµ¥µÄ¸üͨÓøüʵÓõķ½·¨£¡£¡£¡
ºÃÁË,·Ï»°ÉÙ½²,ÑÔ¹éÕý´«,ÒÔÏÂΪ°³µÄʵÏÖ¹ý³Ì£º
¢Ù£ºÊ×ÏÈÒªÓÐÕâ¸öÎļþURLRewriter.dll,Èç¹ûûÓÐ,¸Ï¿ìµ½ÍøÉÏÏÂÔØÒ»¸ö,²¢½«Æä·Åµ½ÏÂÃæµÄbinĿ¼ÀïÃæ,²¢ÇÒ½«ÆäÒýÓÃÌí¼Óµ½ÏÂÃæÀïÃæ;
¢Ú£ºÏÂÃæ¾ÍÊÇWeb.ConfigÎļþµÄÅäÖÃÁË,µ±È»,ÅäÖùý³ÌÏ൱¼òµ¥£º
1£ºÏÈÌí¼ÓÕâ¸ö
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<RewriterConfig>
<Rules>
<!-- Rules for Blog Content Displayer -->
<RewriterRule>
<LookFor>~/(.[0-9]*)\.html</LookFor>
<SendTo>~/ArticleDetail.aspx?MyID=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
2£ºÔÙÌí¼ÓÕâ¸ö
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
&nbs
Ïà¹ØÎĵµ£º
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();
......
ASP.NETµÄ¹Ø¼üÄ¿±êÖ®Ò»ÊÇ´´½¨Ò»ÖÖÈÿª·¢ÈËÔ±Äܹ»ÏñWindowsÓ¦ÓóÌÐò¿ª·¢Õ߶¨ÖÆ×ÀÃæÓ¦ÓóÌÐòÄÇÑùµÄ¿ìËÙ¶¨ÖÆWeb FormsµÄģʽ¡£µ±È»WebÓ¦ÓóÌÐòÓ봫ͳ¸»¿Í»§¶ËÓ¦ÓóÌÐòÓкܴóµÄ²»Í¬£¬ÒªÊµÏÖÕâÖÖģʽÓÐÁ½¸ö¹Ø¼üµÄÕÏ°¡£
1.WebÓ¦ÓóÌÐòÊÇÔÚ·þÎñÆ÷¶ËÖ´ÐеģºÀýÈ磬¼ÙÉè´´½¨Ò»¸ ......
ÒªÔÚVS2005ÖÐʹÓÃsqlhelperÀà,±ØÐë°ÑMicrosoft.ApplicationBlocks.Data.dllÒýÓõ½ÏîÄ¿ÖÐ.
1.ͨ¹ý´æ´¢¹ý³Ì²éѯµÄ·½·¨SqlHelper.ExecuteDataset(Êý¾Ý¿âÁ¬½Ó×Ö·û, ´æ´¢¹ý³Ì×Ö·û, ²ÎÊýÊý×é);
2.ͨ¹ý×Ö·û´®²éѯµÄ·½·¨SqlHelper.ExecuteDataset(Êý¾Ý¿âÁ¬½Ó×Ö·û, CommandType.Text , ²éѯ×Ö·û´®,²ÎÊýÊý×é);
3.ͨ¹ý´æ´¢¹ý³Ì²åÈëµ ......
ת×Ô£ºhttp://www.cnblogs.com/yao/archive/2007/02/24/655190.html
FlashÉÏ´«Îļþ(½áºÏasp.net)
Ò»¡¢ÊµÏÖÔÀí¡£
ÔÚijЩ³¡ºÏ£¬ÎÒÃÇÐèҪʹÓÃFlash½øÐГÎļþÉÏ´«”£¬ÔÒòÊÇFlash ÄÜÖÆ×÷³ö±íÏÖÁ¦·á¸»µÄUI½çÃæ¡£
(×Ô¸ºÓֹª¹ÑÎŵÄÎÒÔÚÕâÀï×öÒ»¸ö²¹³ä£ºFlashʹÓÃflash.net°üÖеÄFileReferenceÊÇ¿ÉÒÔ·¢ËÍÎļþÊý¾ ......