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

asp.netÖе÷ÓÃjavascript×Ô¶¨Ò庯ÊýµÄ·½·¨×ܽá

ͨ³£javascript´úÂë¿ÉÒÔÓëHTML±êÇ©Ò»ÆðÖ±½Ó·ÅÔÚÇ°¶ËÒ³ÃæÖУ¬µ«Èç¹ûJS´úÂë¶àµÄ»°Ò»·½Ãæ²»ÀûÓÚά»¤£¬ÁíÒ»·½ÃæÒ²¶ÔËÑË÷ÒýÇæ²»ÓѺã¬Òò
ΪҳÃæÒò´Ë¶ø±äµÃÓ·Ö×£»ËùÒÔÒ»°ãÓÐÁ¼ºÃ¿ª·¢Ï°¹ßµÄ³ÌÐòÔ±¶¼»á°Ñjavascript´úÂë·Åµ½¶ÀÁ¢µÄjsÎļþÖУ¬ÆäËûÒ³Ãæͨ¹ýÒýÈë¸ÃjsÎļþÀ´Ê¹ÓÃÏàÓ¦µÄ
javascript´úÂë¡£
½ñÌìÔÚ×öÒ»¸öСÐÂÎÅϵͳµÄ¹ÜÀíÒ³ÃæʱÒòΪͼ·½±ã£¬¸Õ¿ªÊ¼ËùÓÐÓõ½µÄ×Ô¶¨Òåjavascriptº¯Êý¶¼·ÅÔÚÁË
admin.aspxÒ³ÃæÖУ¬¹¦ÄÜʵÏÖºóΪÁËÈÃÇ°¶ËÒ³ÃæÏÔʾ¼ò½à¹æ·¶Ð©£¬ÎÒ°ÑËùÓÐ×Ô¶¨ÒåµÄjavascriptº¯Êý¶¼·Åµ½admin.jsÎļþÀïÁË£¬È»ºó
ÔÚadmin.aspxÒ³ÃæÖÐͨ¹ý<link href="script/admin.js" type="text/javascript"
/>ÒýÈë¸ÃjsÎļþ¡£½Ó×ÅÎÊÌâ³öÏÖÁË£¬ÀïÃ涨ÒåµÄº¯ÊýÓеĵ÷ÓÃÕý³££¬ÓеÄÈ´³ö´íÁË£¬ÌáʾȱÉÙ¶ÔÏó¡£Èç¹ûÊÇÎļþ·¾¶²»¶ÔÓ¦¸ÃËùÓнű¾º¯Êý¶¼²»Äܵ÷ÓòÅ
¶Ô£»µ«Èç¹û·¾¶ÕýÈ·µÄ»°ÎªÊ²Ã´Óеĺ¯Êý¿ÉÒÔÕý³£µ÷ÓÃÓеÄÈ´²»ÄÜÄØ£¿²»½â£¡
½Ó×ÅÉÏÍø²éÁËһϣ¬ÓÐÈËÒ²Óöµ½ÕâÖÖÇé¿öÔÚCSDNÖз¢ÌùÌáÎÊ£¬²»¹ý
ËƺõҲû½â¾ö£»È»ºó³¢ÊÔÓÃÁíÒ»ÖÖ·½·¨ÒýÓÃJSÎļþ£º<script src="script/admin.js"
type="text/javascript"></script>¡£ÔÙÔËÐУ¬ËùÓнű¾º¯Êýµ÷ÓÃÕý³££¬¿´À´ÎÊÌâÊdzöÏÖÔÚµ÷Ó÷½Ê½ÉÏ¡£ÄÇ
¾¿¾¹javascriptµÄ¸÷ÖÖÒýÈ뷽ʽÓÐʲôÇø±ðÄØ£¿ÏÂÃæÈÃÊ®Íò¸öΪʲô
Ϊ´ó¼Ò×ܽáһϣº
ASP.NET±¾Éí¾ÍÌṩÁ˶àÖÖµ÷ÓÃjavascript½Å±¾µÄ·½·¨£¬±ÊÕßÔÚÕâÀï×ܽáÁËÁùÖÖµ÷Ó÷½·¨£¬´ó¼Ò¿ÉÒÔ¸ù¾Ý×Ô¼ºµÄʹÓÃÏ°¹ßÑ¡ÔñÏàÓ¦µÄµ÷Ó÷½Ê½ÁË£¡
1¡¢Ö±½ÓÔÚǰ̨ҳÃæµ÷ÓÃ×Ô¶¨ÒåµÄjavascript º¯Êý£º
ºÜ¼òµ¥,ÔÚ head ÔªËØÖ®¼ä¼ÓÈë script ÔªËØ,½« type ÔªËØÉèÖÃΪ " text/javascript "
Èç:
<head runat="server">
<script type="text/javascript" >
function ShowName(str)
{
alert("Ê®Íò¸öΪʲôµÄÕ¾³¤ÊÇ:("+str+")");
}
</script>
<title>using javascript</title>
</head>
Ö®ºóÔÚbody ÔªËؼä,ͨ¹ýʼþÀ´·ÃÎÊ£¬±ÈÈçҪͨ¹ýbutton1 µÄµ¥»÷ʼþ(onclientclick)À´·ÃÎÊ javascript º¯ÊýµÄShwoName()µÄʾÀýÈçÏÂ:
<asp:Button ID="Button1" runat="server" Text="Button" onclientclick="ShowName('ÎéÈñ·æ')" />
ÕâʱÔËÐÐÏîÄ¿,µ¥»÷ buttonʱ,»áÏÔʾ"Ê®Íò¸öΪʲô
,µÄÕ¾³¤ÊÇ£ºÎ


Ïà¹ØÎĵµ£º

Asp.net ÖÐsession´æ´¢µÄÈýÖÖģʽµÄ¾ßÌåÔËÓÃ

ÔÚAsp.netÖÐSessionµÄ´æ´¢·½Ê½²»ÏóaspÄÇÑùµ¥Ò»£¬Ò»¹²ÌṩÁËÈýÖÖ´æ´¢·½Ê½£¬ÓÉÓÚ×î½üÒ»¸ö2000¶àÈËʹÓõÄwebÈí¼þ³öÏÖÁ˹ÊÕÏ£¬Óû§Ã¿
ÌìÔçÉÏÔÚijһʱ¿Ì³öÏÖÄÑÒԵǽÏÖÏ󣬽Ó×ÅSession¶ªÖµ³öÏÖ£¬Ö»ÓÐÖØÆôIIS,»ò»úÆ÷.Õâʱ³ÌÐò»Ö¸´Õý³£ÁË.ÕûÌ춼²»»á³öÏÖͬÑùµÄÎÊÌâ
£¬µ«ÊǵڶþÌìÒÀ¾É!ÕâÖÖÏÖÏó³ÖÐøÁ˺ü¸Ì죬ÎÒ¼ì²éÁËÒ»ÏÂÈÕÖ¾Îļþ ......

ASP.NET½âÎöxml·µ»Øij½ÚµãÊôÐÔµÄÄÚÈÝ

test.xml
<?xml version="1.0" encoding="utf-8" ?>
<root>
    <R SecuCode="601600" Glossary="ѧITÍø²âÊÔ»ñÈ¡XML½á¹ûÏÔʾÕý³££¬¡£¡£¡£¡£¡£¡£¡£¹þ¹þ" />
    <R SecuCode="600056" Glossary="²âÊÔµÚ¶þ¸ö£¬¡£¡£¡£¡£¡£¡£¡£¹þ¹þ" />
</root>
ÏÂÃæxml½âÎö ......

javascript event¶ÔÏó Óë jquery event ½âÎö(ת)

ת×Ô£ºhttp://www.cnblogs.com/mslove/
ÃèÊö
event´ú±íʼþµÄ״̬£¬ÀýÈç´¥·¢event¶ÔÏóµÄÔªËØ¡¢Êó±êµÄλÖü°×´Ì¬¡¢°´ÏµļüµÈµÈ¡£
event¶ÔÏóÖ»ÔÚʼþ·¢ÉúµÄ¹ý³ÌÖвÅÓÐЧ¡£
eventµÄijЩÊôÐÔÖ»¶ÔÌض¨µÄʼþÓÐÒâÒå¡£±ÈÈ磬fromElement ºÍ toElement ÊôÐÔÖ»¶Ô onmouseover ºÍ onmouseout ʼþÓÐÒâÒå¡£
Àý×Ó
ÏÂÃæµÄÀý×Ó¼ì²é ......

asp.net дϵͳÈÕÖ¾

ÔÚ×¢²á±í System->CurrentControlSet->Services->Eventlog ´¦Ñ¡ÔñÌí¼ÓϵͳÖÐ AspNet Õâ¸öÕË»§×¢ÒâÊÇÔÚÓÒ¼üµÄ °²È«->ȨÏÞ->Ìí¼Ó
дÈÕÖ¾
 public static void Log(string sourceName, string message)
    {
        EventLog eventLog = null;
......

asp.net ¶ÔxmlÎļþµÄ¶Áд,Ìí¼Ó,ÐÞ¸Ä,ɾ³ý²Ù×÷

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
private XmlDo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ