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

ÔÚasp.netÖлسµ´¥·¢Ö¸¶¨°´Å¥µÄʼþ

½ñÌìÔÚ¿ª·¢ÖУ¬Óöµ½ÁËÒ»¸öÎÊÌ⣺
      ÔÚHeaderÖÐÓÐÒ»¸öËÑË÷ÊäÈë¿ò£¬ËÑË÷°´Å¥ÊÇButton¿Ø¼þ£¬ÔÚ“×ÊѶÎÄÕÂËÑË÷”Óû§×Ô¶¨Òå¿Ø¼þÖÐÒ²Óõ½ÁËButton¿Ø¼þ¡£
      ½«½¹µãÍ£ÔÚ“×ÊѶ±êÌâ»òÄÚÈÝ”ÊäÈë¿òÖУ¬»Ø³µ£¬µ«ÊÇÏàÓ¦µÄÊÇHeaderÖÐÊäÈë¿òÄÚÈÝ¡£
Ô­Òò£º»Ø³µÖ´ÐеľÍÊÇÄãÒ³ÃæÉϵĵÚÒ»¸ösubmit   button¡£½â¾ö·½·¨£º£¨ÒÔÏÂÒÔ×ÊѶËÑË÷ÊäÈë¿òΪÀý£©
1¡¢js£º
----------------------------------------------------------------------------
/* »Ø³µºóÖ´Ðа´Å¥ */
function SubmitKeyClick(button){
    if (event.keyCode == 13){       
        event.keyCode = 9;
        event.returnValue = false;
        document.all[button].click();
    }
}
function checkinputbox(){
    var charBag = "[^`~@#$%^&/\'|*]";
    var searchkey = document.getElementById("ArticleSearch1_txtSearchKey");
   
    if (trim(searchkey.value).length == 0 || trim(searchkey.value).length > 30){
        alert("×ÊѶÎÄÕ¹ؼü×Ö²»Äܶ¼Îª¿Õ»ò³¤¶È²»Äܳ¬¹ý¸ö×Ö·û£¡");
        searchkey.focus();
        return false;
    }
   
    if (trim(searchkey.value) != ""){ 
        for (var i = 0; i < searchkey.value.length; i++) {
            var c = searchkey.value.charAt(i);
            if (charBag.indexOf(c) > -1) {
               alert("ËÑË÷×ÊѶÎÄÕ¹ؼü×Ö×Ö·û´®Öк¬ÓзǷ¨×Ö·û(" + c +")£¡");
          &nbs


Ïà¹ØÎĵµ£º

ASP.NETµ¯³öģʽ¶Ô»°´°¿Ú·â×°Àà

 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /// <summary>
    /// javascriptµ¯³ö´°¿Ú·â×°Àà
    /// </summary>
    public static class JSCommon ......

ASP.NET MVC ÈëÃÅ

ÓÐʱºòÄãÏëÔÚµ÷ÓÃaction·½·¨Ö®Ç°»òÕßaction·½·¨Ö®ºó´¦ÀíһЩÂß¼­£¬ÎªÁËÖ§³ÖÕâ¸ö£¬ASP.NET MVCÔÊÐíÄã´´½¨action¹ýÂËÆ÷¡£Action¹ýÂËÆ÷ÊÇ×Ô¶¨ÒåµÄAttributes£¬ÓÃÀ´±ê¼ÇÌí¼ÓAction·½·¨Ö®Ç°»òÕßAction·½·¨Ö®ºóµÄÐÐΪµ½¿ØÖÆÆ÷ÀàÖеÄAction·½·¨ÖС£
һЩ¿ÉÄÜÓõ½Action¹ýÂËÆ÷µÄµØ·½ÓУº
ÈÕÖ¾,Òì³£´¦Àí
Éí·ÝÑéÖ¤ºÍÊÚȨ £­ ÏÞÖ ......

ASP.NET MVC ÈëÃÅ

ÔÚASP.NET MVC beta·¢²¼Ö®Ç°£¬M$¾ÍÐû²¼Ö§³Ö¿ªÔ´µÄJS¿ò¼ÜjQuery£¬È»ºóASP.NET MVC beta·¢²¼ºó£¬Ä㽨Á¢Ò»¸öASP.NET MVC betaµÄÏîÄ¿ºó£¬Äã¿ÉÒÔÔÚÏîÄ¿µÄscriptsĿ¼ÏÂÕÒµ½ASP.NET AJAXºÍjQueryµÄJS¡£·´ÕýÎÒÊDZȽÏϲ»¶jQueryµÄ£¬ËùÒÔ¶ÔÓÚM$´Ë¾Ù»¹ÊÇͦÐÀοµÄ¡£
·Ï»°²»¶à˵£¬ÎÒÃÇʹÓÃAJAXÀ´ÊµÏÖ·¢±íÆÀÂ۵ŦÄÜ°É¡£ÏÈÀ´¿´¿´ÔõÑùÊ¹Ó ......

ASP.NETÀïµÄSessionÏêϸ½âÊÍ

SessionÄ£Ðͼò½é
SessionÊÇʲôÄØ£¿¼òµ¥À´Ëµ¾ÍÊÇ·þÎñÆ÷¸ø¿Í»§¶ËµÄÒ»¸ö±àºÅ¡£µ±Ò»Ì¨WWW·þÎñÆ÷ÔËÐÐʱ£¬¿ÉÄÜÓÐÈô¸É¸öÓû§ä¯ÀÀÕýÔÚÔËÕýÔÚÕą̂·þÎñÆ÷ÉϵÄÍøÕ¾¡£µ±Ã¿¸öÓû§Ê×´ÎÓëÕą̂WWW·þÎñÆ÷½¨Á¢Á¬½Óʱ£¬Ëû¾ÍÓëÕâ¸ö·þÎñÆ÷½¨Á¢ÁËÒ»¸öSession£¬Í¬Ê±·þÎñÆ÷»á×Ô¶¯ÎªÆä·ÖÅäÒ»¸öSessionID£¬ÓÃÒÔ±êʶÕâ¸öÓû§µÄΨһÉí·Ý¡£Õâ¸öSessionI ......

ASP.NETÒ³Ãæ»Ø·¢Óëʼþ»Ø´«

         Ò³Ãæʼþ˳ÐòÊǹ̶¨µÄ£¬µ«Ò³ÃæÉϵĿؼþʼþÔòÒÀÀµ¾ßÌåÒ³ÃæºÍÓû§µÄ²Ù×÷¡£Èç¹û¿Ø¼þµÄAutoPostBackÊôÐÔÉèÖÃΪtrue£¨Ä¬ÈÏֵΪfalse£©£¬ÄÇô½«Á¢¿ÌÒýÆðÒ³Ãæ»Ø·¢£¬¼´Ò³ÃæÖи÷¸ö¿Ø¼þµÄÖµ»Ø´«µ½Web·þÎñÆ÷ÉÏ£¬Òý·¢ÏàӦʼþ£¬ÓÉʼþµÄ´¦Àí³ÌÐò´¦Àí¡£´¦ÀíÍê³ÉºóÈç¹ûûÓÐÌøתָÁ¸ÃÒ³Ãæ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ