ASP.NETÖеÄEval£¨£©ºÍDataBinder.Eval£¨£©·½·¨
Eval( " ")ºÍBind( " ")¡¡ÕâÁ½ÖÖÒ»¸öµ¥Ïò°ó¶¨£¬Ò»¸öË«Ïò°ó¶¨
bindÊÇË«Ïò°ó¶¨,µ«ÐèÊý¾ÝÔ´¿É¸ü¸Ä²ÅÄÜÓÃ
ASP.NET 2.0¸ÄÉÆÁËÄ£°åÖеÄÊý¾Ý°ó¶¨²Ù×÷£¬°Ñv1.xÖеÄÊý¾Ý°ó¶¨Óï·¨DataBinder.Eval(Container.DataItem, fieldname)¼ò»¯ÎªEval(fieldname)¡£Eval·½·¨ÓëDataBinder.EvalÒ»Ñù¿ÉÒÔ½ÓÊÜÒ»¸ö¿ÉÑ¡µÄ¸ñʽ»¯×Ö·û´®²ÎÊý¡£Ëõ¶ÌµÄEvalÓï·¨ÓëDataBinder.EvalµÄ²»Í¬µãÔÚÓÚ£¬Eval»á¸ù¾Ý×î½üµÄÈÝÆ÷¶ÔÏó£¨ÀýÈçDataListItem£©µÄDataItemÊôÐÔÀ´×Ô¶¯µØ½âÎö×ֶΣ¬¶øDataBinder.EvalÐèҪʹÓòÎÊýÀ´Ö¸¶¨ÈÝÆ÷¡£ÓÉÓÚÕâ¸öÔÒò£¬EvalÖ»ÄÜÔÚÊý¾Ý°ó¶¨¿Ø¼þµÄÄ£°åÖÐʹÓ㬶ø²»ÄÜÓÃÓÚPage£¨Ò³Ã棩²ã¡£µ±È»£¬ASP.NET 2.0Ò³ÃæÖÐÈÔȻ֧³ÖDataBinder.Eval£¬Äã¿ÉÒÔÔÚ²»Ö§³Ö¼ò»¯µÄEvalÓï·¨µÄ»·¾³ÖÐʹÓÃËü¡£
ÏÂÃæµÄÀý×ÓÑÝʾÁËÈçºÎʹÓÃеļò»¯µÄEvalÊý¾Ý°ó¶¨Óï·¨°ó¶¨µ½DataListÊý¾ÝÏîÄ£°å£¨ItemTemplate£©ÖеÄImage¡¢LabelºÍHyperLink¿Ø¼þ¡£
£¼asp:DataList ID= "DataList1 " RepeatColumns= "5 " Width= "600 " runat= "server " DataSourceID= "ObjectDataSource1 "£¾
¡¡£¼ItemTemplate£¾
¡¡¡¡£¼asp:HyperLink ID= "HyperLink1 " runat= "server " NavigateUrl= '£¼%# Eval( "PhotoID ", "PhotoFormViewPlain.aspx?ID={0} ") %£¾ '£¾
¡¡¡¡£¼asp:Image ID= "Image1 " Runat= "server " ImageUrl= '£¼%# Eval( "FileName ", "images/thumbs/{0} ") %£¾ ' /£¾£¼/asp:HyperLink£¾
¡¡¡¡£¼asp:Label ID= "CaptionLabel " runat= "server " Text= '£¼%# Eval( "Caption ") %£¾ ' /£¾
¡¡£¼/ItemTemplate£¾
£¼/asp:DataList£¾£¼br /£¾
£¼asp:ObjectDataSource ID= "ObjectDataSource1 " runat= "server " TypeName= "DataComponentTableAdapters.PhotosTableAdapter " SelectMethod= "GetPhotosForAlbum "£¾
¡¡¡¡Êý¾Ý°ó¶¨Ò²¿ÉÒÔ×÷Ϊ¿Ø¼þµÄÖ÷ÌⶨÒ壨theme definition£©µÄÒ»²¿·Ö£¬ÕâÑùÎÒÃǾͿÉÒÔͨ¹ý¸Ä±äÖ÷ÌâÀ´ËæÒâµØ¸Ä±äÄ£°å»¯¿Ø¼þµÄ²¼¾ÖºÍÍâ¹Û¡£µ«ÊÇTheme£¨Ö÷Ì⣩ģ°åÖÐÖ»ÄÜʹÓÃEval£¨»òÕߺóÃæÌÖÂÛµÄBind£©¡£°ó¶¨µ½ÈÎÒâµÄÓû§´úÂëÊDZ»½ûÖ¹µÄ¡£
Q:DataBinder.Eval(Container.DataItem,"Name")ºÍContainer.DataItem("Name")ÓÐʲôÇø±ð£¿
A:DataBinderÊÇSystem.WebÀïÃæµÄÒ»¸ö¾²Ì¬À࣬ËüÌṩÁËEval·½·¨ÓÃÓÚ¼ò»¯Êý¾Ý°ó¶¨±í´ïʽµÄ±àд£¬µ«ÊÇËüʹÓõķ½Ê½ÊÇͨ¹ýReflectionµÈ¿ªÏú±È½Ï´óµÄ·½·¨À´´ïµ½Ò×ÓÃÐÔ£¬Òò´ËÆäÐÔÄܲ¢²»
Ïà¹ØÎĵµ£º
OAÔ´ÂëΪÎÒ¹¤×÷ÊÒ¾«ÐÄ´òÔì,ÓÃÁËÈýÄêµÄʱ¼ä,²ÅÐÞÕýÍêÉƵĴóÐͰ칫ϵͳ.
Ϊ¶ÀÁ¢¿ª·¢,²»´æÔÚ°æȨ¾À·×,²»»á¸øÄú´øÀ´Âé·³,´úÂëÍêÕû£¬Öø×÷ȨµÇ¼ÇºÅ£º2008SR14608.
OA×îÐÂÉý¼¶£¬¹¤×÷Á÷¸üÇ¿´ó£¬±íµ¥¶¨Òå¸üÎȶ¨
ÇëÈÏ×¼ÁªÏµ·½Ê½£¬½÷·À¼Ùð¡£
Ϊ½ÚÔ¼¿ª·¢³É±¾£¬OAÔ´Âë¿ÉÒÔ·ÖÄ£¿é½øÐÐÌṩ
ÓÀ¾Ãά»¤£¬Óг¥2´Î¿ª·¢
Èí¼þ¹¦ÄÜ·ÖΪרҵ° ......
ÔÚAsp.netÖÐʵÏÖÎļþµÄÉÏ´«¹¦ÄÜ£¬ÊǷdz£¼òµ¥µÄÒ»¼þÊÂÇ飬ֻÐèÒªÀûÓÃ΢ÈíÌṩµÄFileUpload¿Ø¼þ¼´¿ÉÇáËÉʵÏÖ¡£
LargeFileUpload.aspx´úÂëÈçÏÂ
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="LargeFileUpload.aspx.vb"
Inherits="LargeFileUpload" %>
<!DOCTYPE html PUBLIC "-//W3C/ ......
1.
´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.net
Ò³ÃæÖеÄij¸öButton
±»µã»÷ºódisable
µô¸ÃÒ³ÃæÖÐËùÓеÄButton
£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton
½Å±¾.
//ASP.NET
ÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script
language="javascript"> < !-- function dis ......
¡¡1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
¡¡¡¡Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø± ......
ÊÊÓÃÓÚ£ºmicrosoft ASP.NET
ÕªÒª:asp.net¶¯Ì¬Éú³ÉhtmlÒ³Ãæ,ÊÊÓÃ
¼ò½é
´Ë¹¦ÄÜÊÊÓÃÓÚºǫ́Êý¾Ý¿â¹¦Äܲ»Ç¿µÄwebÕ¾µã£¬¼´´ó²¿·ÖÎı¾²»ÊÇ´æ·ÅÔÚÊý¾Ý¿âµÄ¼Ç¼ÖУ¬¶øÊÇ·ÅÔÚhtmlÎļþ»òÕßxmlÎļþÖУ¬½ö½ö°ÑË÷Òý·Åµ½Êý¾Ý¿âÖУ¬ÈçÎÄÕ±êÌâ¡¢Àà±ð¡¢²éѯ¹Ø¼ü×ֵȡ£ÕâÑùÊʺÏÓÚºǫ́ûÓÐÖîÈçms Sql ServerÕâÑùµÄÊý¾Ý¿âÖ§³ÖµÄWebÕ¾µã¡£
ÊÊ ......