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

ASP.NETÖжàѡЧ¹ûÓë¹â°ôЧ¹û£¨ÏÖʵ´úÂ룩

1£© ¶àѡЧ¹û
¶àѡЧ¹ûÍêÈ«¿ÉÒÔͨ¹ý½Å±¾½øÐÐʵÏÖ¡£ÎÒÃÇÖªµÀ£¬¶àÑ¡µÄ¿Ø¼þ×îÖÕÉú³ÉÒ»¸öinputµÄHTML±êÇ©£¬ËüµÄÀàÐÍÊÇcheckbox¡£ÓÉÓÚÕâ¸öÒ³ÃæÖÐÖ»ÓÐÒ»×鸴ѡ¿ò£¬ËùÒÔʵÏÖÆðÀ´Ò²±È½Ï·½±ã£ºÎÒÃÇ¿ÉÒÔ±éÀúËùÓеÄinput±êÇ©£¬¶Ô±ÈÆätypeÊôÐÔÊDz»ÊÇcheckbox£¬Èç¹ûÊÇcheckbox£¬¾Í¸øËüÉèÖÃÏàÓ¦µÄÑ¡ÖÐ״̬¾ÍÐÐÁË¡£
´úÂëÈçÏ£º
<script language="javascript">
  function GetAllCheckBox(CheckAll)       //ÒÔ“È«Ñ¡”Ç°ÃæµÄ¸´Ñ¡¿ò¶ÔÏó×ö²ÎÊý
{
   var items = document.getElementByTagName("input");  //»ñµÃËùÓÐinput¶ÔÏóµÄÁÐ±í£¬²¢±éÀú¸Ã¶ÔÏó
   for(i=0; i<items.length; i++)
    {
         if(items[i].type ==  "checkbox")   //ÅжϱéÀúinput¶ÔÏóµÄÁбíÖеĶÔÏóÊÇ·ñΪcheckboxÀàÐÍ
          {
              items[i].checked = CheckAll.checked;
          }
     }
}
2)¹â°ôЧ¹û
ʵÏÖ¹â°ôЧ¹ûÆäʵҲ²»ËãÄÑ£¬Ëü¾ÍÊǸıäÁËÒ»ÏÂijÐеı³¾°É«¶øÒÑ¡£ÔÚÑùʽ±íÖÐbackgroundColorÊôÐÔÓÃÓÚÉèÖöÔÏóµÄ±³¾°É«¡£Ê¹ÓÃJavaScriptʱ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýthis.style.backgroundColorÀ´»ñµÃ»òÕßÉèÖÃij¶ÔÏóµÄ±³¾°É«¡£
ÎÒÃÇÖ»ÐèÒª¸øÐèÒª¸ßÁÁÏÔʾµÄÐÐÌí¼ÓÁ½¸öʱ¼äonmouseoverºÍonmouseout¡£onmouseoverÔÚÊó±êÒƶ¯µ½¶ÔÏóËùÔÚÇøÓòʱִÐУ¬¶øonmouseoutÔÚÊó±êÀ뿪¶ÔÏóËùÔÚÇøÓòʱִÐС£ÎÒÃÇ¿ÉÒÔÔÚÕâÁ½¸öʼþÉϱàд´úÂ룬ʵÏÖ¸ßÁÁЧ¹û¡£ÄÇôÎÒÃÇÔÚ±í¸ñÖеÄÿһÐÐÌí¼ÓÕâÁ½¸öʼþ¾Í¿ÉÒÔÁË¡£µ«±í¸ñÖеÄÐÐÊÇ°ó¶¨Éú³ÉµÄ£¬Ò²ÐíÄ㻹²»ÖªµÀ¸ÃÈçºÎÔÚÕâЩÉú³ÉµÄÐÐÉÏÌí¼ÓʼþÄØ¡£
ÔÚGridViewÖУ¬ÓÐÒ»¸öOnRowDataBoundÐаó¶¨Ê¼þ¡£ÎÒÃÇ¿ÉÒÔÔÚ°ó¶¨ÐеÄʱºò£¬ÉèÖõ±Ç°ÐеÄÊó±êÒƶ¯Ð§¹û£¬´úÂëÈçÏ£º
protected void gvBooks_RowDataBound(object sender, GridViewRowEventArgs e)
{
      if(e.Row.RowType == DataControlRowType.DataRow)
       {
            e.Row.Attributes.Add("onmouseover","currentcolo


Ïà¹ØÎĵµ£º

asp.netÖйýÂÔhtml´úÂë

// <summary>
        /// ¹ýÂËhtml´úÂë
        /// </summary>
        public static string RphtmlStr(string html)
        {
   &n ......

Asp.Net XML²Ù×÷»ùÀà(ÐÞ¸Ä,ɾ³ý,ÐÂÔö,´´½¨)

/############################################
°æȨÉùÃ÷£º
ÎÄÕÂÄÚÈÝΪ±¾Õ¾±à¼­,´´×÷.Äã¿ÉÒÔÈÎÒâתÔØ¡¢·¢²¼¡¢Ê¹Óõ«ÇëÎñ±ØÒÔÃ÷Îıê×¢ÎÄÕÂԭʼ³ö´¦¼°±¾ÉùÃ÷
×÷Õß:ÀËÌÔɳ
############################################/
/****************************************************************
* ¸üÐÂÄÚÈÝ: 1,¸ù¾Ý¸¸½Úµã ......

¡¾ASP.NETרÌâ¡¿(1)——ASP.NET MVC³õ̽

ASP.NET MVC FrameworkÊÇ΢Èí¹Ù·½ÌṩµÄMVCģʽ±àдASP.NET WebÓ¦ÓóÌÐòµÄÒ»¸ö¿ò¼Ü.ÒÑÓÚ2009Äê3ÔÂ19ÈÕÕýʽ·¢²¼. MVC(Model-View-Controller)ÓÃÓÚ±íʾһÖÖÈí¼þ¼Ü¹¹Ä£Ê½.Ëü°ÑÈí¼þϵͳ·ÖΪÈý¸ö»ù±¾²¿·Ö:Ä£ÐÍ(Model),ÊÓͼ(View)ºÍ¿ØÖÆÆ÷(Controller). ¼ÈÈ»ÊÇÒ»¸öÓÅÐãµÄ¿ò¼Ü£¬ÄÇô¾ÍÖµµÃȥѧϰһ°Ñ£¬ÍøÉÏËÑË÷ÁËÐí¶à×ÊÁÏ£¬Ï£Íû¶ÔÓ ......

¡¾ASP.NETרÌâ¡¿(5)——ÈçºÎÏòView´«Öµ

ÉÏһƪÎÄÕÂÏêϸ½éÉÜÁËÈçºÎÀûÓÃASP.NET MVC´´½¨×Ô¼ºµÄÒ³Ã棬ÔÚÎÄÕ½éÉÜÁËÈçºÎÀûÓÃViewDataÓÉControllerÏòViewÎļþ´«Öµ£¬ÄÇеÄÎÊÌâÔٴγöÏÖ£¬ÎÒÃdzýÁËÄÜÏÔʾaspxÎļþÍ⻹ÄÜÏÔʾÆäËüµÄÎļþô£¿
±¾ÎĽ«Ïêϸ½éÉÜÈçºÎÏòView´«Öµ¡£
Ò»¡¢ViewDataÓëTempDataÊôÐÔÀ´ÏòViewÒ³´«µÝ¶ÔÏó
ÉÏÎÄÖÐÒѾ­Ìáµ½,ʹÓÃViewData¿ÉÒÔ½«Êý¾ÝÓÉCont ......

c#(asp.net)¼¸Öв»Í¬´Óǰ̨ҳÃæ²Ù×÷ºǫ́

µÚÒ»ÖÖ
<%=RetInfo("DB","Êý¾Ý¿â") %>
<%=RetInfo("YX_UpFile","ÉÏ´«Îļþ") %>
<%=RetfileInfo("Include/", "¹ã¸æ")%>
//´Óǰ̨µ÷Óúǫ́·½·¨
//´Óǰ̨µ÷Óúǫ́µÄ·½·¨..²¢ÏòÆä·½·¨´«È벻ͬµÄ²ÎÊý!
µÚ¶þÖÖ
<ItemTemplate >
<%#Ret_stat(Convert.ToInt16(Eval("YX_Stat1")), "Èȵã")%> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ