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

ASP.NET


      Êý¾ÝÔ´¿Ø¼þÌṩ¶àÖÖÊý¾Ý·þÎñ£¬ÕâÑù½«¸ß¼¶¹¦ÄÜÌí¼Óµ½Ó¦ÓóÌÐò»á±äµÃ¸ü¼ÓÈÝÒס£Õâ°üÀ¨¸ù¾ÝÖ¸¶¨µÄËÑË÷Ìõ¼þɸѡÊý¾Ý¡£É¸Ñ¡¶ÔÓÚʹÓûº´æÊý¾ÝÓÈÆä·½±ã£¬ÒòΪÄúÎÞÐèÖØÐÂÔËÐвéѯ»òµ÷ÓöÁÈ¡Êý¾ÝµÄ·½·¨¾Í¿ÉÒÔÌṩËÑË÷¹¦ÄÜ¡£
      ÈôҪɸѡÊý¾Ý£¬±ØÐë°´ÏÂÁз½Ê½ÅäÖÃÊý¾ÝÔ´¿Ø¼þ£º
·¶ÔÓÚ SqlDataSource »ò AccessDataSource ¿Ø¼þ£¬±ØÐ뽫 DataSourceMode ÊôÐÔÉèÖÃΪ DataSet¡£
·¶ÔÓÚ ObjectDataSource ¿Ø¼þ£¬»ù´¡Ô´¶ÔÏó±ØÐë·µ»Ø DataSet »ò DataTable ¶ÔÏó¡£
ʹÓà XmlDataSource ¿Ø¼þʱ£¬¿ÉÒÔʹÓà XPath ²éѯɸѡÊý¾Ý¡£
 
Ò»¡¢ÉèÖÃɸѡÆ÷±í´ïʽ
ͨ¹ýÉèÖÃÊý¾ÝÔ´¿Ø¼þµÄ FilterExpression ÊôÐÔ£¬Ö¸¶¨ÒªÓ¦Óõ½ ObjectDataSource¡¢SqlDataSource »ò AccessDataSource ¿Ø¼þËù·µ»ØµÄÊý¾ÝµÄɸѡÆ÷¡£É¸Ñ¡Æ÷±í´ïʽµÄÓï·¨»ùÓÚ DataColumn ÀàµÄ Expression ÊôÐÔµÄÓï·¨¡£µ±µ÷ÓÃÊý¾ÝÔ´¿Ø¼þµÄ Select ·½·¨Ê±£¬½«Ó¦ÓÃɸѡÆ÷±í´ïʽ¡£
 
¶þ¡¢ÌṩɸѡÆ÷²ÎÊý
Äú¿ÉÒÔΪ ObjectDataSource¡¢SqlDataSource »ò AccessDataSource ¿Ø¼þÌṩ²ÎÊý»¯µÄɸѡÆ÷±í´ïʽ£¬ÕâʹÄú¿ÉÒÔÔÚÔËÐÐʱÌṩɸѡֵ£¬¶øÎÞÐè±àдÈκδúÂëÀ´ÏÔʽÉèÖà FilterExpression ÊôÐÔ¡£Ê¹ÓÃÊý¾ÝÔ´¿Ø¼þµÄ FilterParameters ¼¯ºÏÖ¸¶¨É¸Ñ¡Æ÷±í´ïʽ²ÎÊý¡£²ÎÊý¿ÉÒÔ¼ìË÷¿Ø¼þÖеÄÊý¾Ý¡¢QueryString ¶ÔÏ󡢻Ự״̬¡¢Óû§ÅäÖÃÎļþÊôÐԵȵȡ£
      ÔÚɸѡÆ÷±í´ïʽÖУ¬´´½¨ÓëÊý¾ÝÔ´¿Ø¼þµÄ FilterParameters ¼¯ºÏÖеÄÏî¶ÔÓ¦µÄռλ·û¡£Õ¼Î»·ûÊÇ´ø±àºÅµÄ£¬0 ±íʾ¼¯ºÏÖеĵÚÒ»¸ö²ÎÊý¡£Í¨¹ý½«É¸Ñ¡Æ÷²ÎÊýµÄ±àºÅ·ÅÈë“{”ºÍ“}”×Ö·ûÖм䣬¿ÉÒÔÖ¸¶¨É¸Ñ¡Æ÷±í´ïʽµÄռλ·û£¬ÈçÒÔÏÂʾÀýËùʾ£º
       Country = '{0}' AND LastName LIKE '{1}'
      °²È«ËµÃ÷£º ÒòΪ FilterParameters ¼¯ºÏÖеÄÖµ±»Ì滻ΪûÓбàÂëµÄ FilterExpression ×Ö·û´®£¬ËùÒÔÔÚÓ¦ÓÃɸѡÆ÷֮ǰӦµ±ÑéÖ¤ËùÓÐɸѡÆ÷²ÎÊýµÄÖµ¡£ÔÚÓ¦ÓÃɸѡÆ÷֮ǰ£¬¿ÉÒÔʹÓÃÊý¾ÝÔ´¿Ø¼þµÄ Filtering ʼþ·ÃÎʲ¢Ñé֤ɸѡÆ÷²ÎÊýµÄÖµ¡£
      ÏÂÃæµÄʾÀýÑÝʾһ¸ö°üº¬É¸Ñ¡Æ÷²ÎÊý¡¢ÃûΪ EmployeeDetailsSqlDataSource µÄ SqlDataSource ¿Ø¼þ¡£FilterExpression ÊôÐÔÖÐʹÓõIJÎÊýÖµÔÚÔËÐÐʱ´ÓÒ³ÉÏÆäËûλÖõĿؼþµÄÊôÐÔÖµ½øÐÐÌî³ä¡£
<%@ Page language="C#" %&


Ïà¹ØÎĵµ£º

ASP.NETºËÐļ¼Êõ|£®NET¼Ü¹¹µÄºËÐÄ¿ª·¢¼¼Êõ

 µ±ÄãÊǴӰٶȻògoogleËÑË÷ ¹Ø¼ü´Ê"ASP.NETºËÐļ¼Êõ","£®NETºËÐļ¼Êõ"¹ýÀ´µÄ»°,ÎÒºÜÏë±ÉÊÓÄãÒ»ÏÂ,ÕæµÄ,ÒòΪÎÒÓöµ½Ì«¶àµÄÕâÑùµÄÈËÁË,"ASP.NETºËÐļ¼Êõ","£®NETºËÐļ¼Êõ"ÕâÑùµÄÎÊÌâÕæµÄû±ØÒªÎÊ,ÓÐÒâ˼Âð,»ù´¡Åª¶®ÁËÂð,¾«Í¨ÁËasp.netÂð,»¹²»ÈçÎÊÎÊ"ASP.NET»ù´¡ÊÇʲô",»ù´¡¶¼Ã»ÓÐŪ¶®,¾ÍÒ»Ììµ½ÍíÔÚÄÇ×·ÇóºËÐÄÊÇʲô,ÕâЩ ......

asp.netÖжàÐÐÎı¾¿ò¸ß¶È×ÔÊÊÓ¦ÄÚÈݵÄÎÊÌâ

 ÔÚÍøÉÏËѲéÁ˺ܾ㬹ØÓÚasp.netÖжàÐÐÎı¾¿ò¸ß¶È×ÔÊÊÓ¦ÄÚÈݵĽâ¾ö·½·¨
<td style="width:700px" align=center valign=top>
        <asp:TextBox runat="server" ID="txtContent" Width=100% ReadOnly=true  Wrap=true TextMode="MultiLine" MaxLength="1073741823" BorderWidt ......

asp.net ¸öÈËÕ¾µãÓëDiscuz NTÕûºÏ

¾­¹ýÒ»Íí°ë¿àÕ½£¬ÖÕÓÚ½«Discuz NTÓëij¹«Ë¾ÍøÕ¾ÕûºÏÆðÀ´ÁË£¬Æð³õ»¹Óöµ½²»Ð¡ÎÊÌ⣬ºÜ¶à¶¼²»Ã÷°×¡£
½«ÔÚ¸ùij¹«Ë¾ÍøÕ¾¸ùĿ¼ÉϽ¨Ò»¸öBBSÎļþ¼Ð£¬°ÑDiscuz NTµÄÎļþ¶¼·Å½øÀïÃæ¡£
ÔÙ½«DNT.configÎļþ£¬configÎļþ¼Ð£¬aspnet_clientÎļþ¼Ð£¬BinÎļþ¼ÐµÄÄÚÈÝCopyµ½¸ùĿ¼ÖУ¬½«DiscuzNTµÄWeb.ConfigÎļþÓëij¹«Ë¾ÍøÕ¾µÄWeb.ConfigÎ ......

ASP.NETÍøÒ³ÔÚVS2008ÖеÄÉú³ÉÁ÷³Ì

ÍòÊ¿ªÍ·ÄÑ
ÕÒÁ˺ܶàAPS.NETµÄÊ飬ÒÔ¼°ÌýÀÏʦ½²µÄÖÆ×÷Á÷³Ì£¬»òÕßÔÚMSDNÀïÕÒµ½µÄ×ÊÁÏ£¬
´ó¸ÅÒòΪ±àÒëÆ÷µÄÔ­Òò£¬¶¼²»Ì«Ïàͬ£¬µ¼ÖÂ×Ô¼º°´×Ų½ÖèÒ²×ö²»¶Ô
½ñÌìÖÕÓÚÖªµÀÕý¹æµÄ×ö·¨ÁË ¹þ¹þ  ¸Ï¿ì¼ÇÏÂÁË~
1.File=¡·Îļþ=¡·Ð½¨=¡·ÍøÕ¾=¡·ASP.NETÍøÕ¾
µã»÷È·ÈϾͿÉÒÔÁË
2.¿ªÊ¼Éè¼ÆÒ³Ãæ
Éè¼ÆÈ«²¿ÊÇÔÚDefault.aspxÀïÃæ
Ë ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ