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

asp.netµ÷ÓÃjs½Å±¾·½·¨

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 º¯Êý 
ʾÀýÈçÏÂ:
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
<asp:Button ID="Button1" runat="server" Text="Button" onclientclick="ShowName('XXX')" />
ÕâʱÔËÐÐÏîÄ¿,µ¥»÷ buttonʱ,»áÏÔʾ"ÄúµÄÃû³ÆÎªXXX" 
Õâ¾ÍÊÇÒ»¸ö¼òµ¥µÄjavascript º¯Êý. 
2¡¢ÔÚǰ̨ͨ¹ý jsÎļþ µ÷Óà
·½·¨Óë £¨1£©Ò»Ñù Ö»²»¹ýÐèÒªÖ¸¶¨ .js Îļþ 
ʾÀýÈçÏÂ:
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
<head runat="server"> 
<script type="text/javascript" src="JScript.js"> 
</script> 
<title>using javascript</title> 
</head>
Ö®ºóÔÚbody ÔªËØ¼ä,ͨ¹ýʼþÀ´·ÃÎÊ Èç Ҫͨ¹ýbutton1 µÄµ¥»÷ʼþ(onclientclick)À´·ÃÎÊ javascript º¯Êý 
ʾÀýÈçÏÂ: 
//´Ëʱ .jsÎļþÖбØÐëÓÐ ShowName ·½·¨ 
<asp:Button ID="Button1" runat="server" Text="Button"
3¡¢ÔÚºǫ́µ÷Óà javascript º¯Êý,º¯ÊýдÔÚ .jsÎļþÖÐ,µ«²¢Ã»ÓÐÔÚǰ̨¶¨Òå 
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
//»ñµÃ.jsÎļþ 
string myscript = "JScript.js"; 
//×¢²á.jsÎļþ, Èç¹û´Ëʱ²é¿´Ô´Âë,»áµÃµ½ÈçÏ´úÂë 
//<script> src ="JScript.js" type="text/javascript"><script> 
Page.ClientScript.RegisterClientScriptInclude("myKey", myscript); 
//ͬÉÏ 
Button1.Attributes.Add("onclick", "showname1(123)");  
 
onclientclick="ShowName('XXX')" /> 
4¡¢ÔÚºǫ́µ÷Óà javascript º¯Êý,º¯ÊýÔÚ.jsÎļþÖР
ǰ̨µÄhead ÔªËØ
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
<head runat="server"> 
<script type="text/javascript" src="JScript.js"> 
</script> 
<


Ïà¹ØÎĵµ£º

Asp.net MVC2 ʹÓþ­Ñ飬ÐÔÄÜÓÅ»¯½¨Òé

1.¹ØÓÚ»º´æ
»º´æÉÏ£¬Êý¾Ý²ãÉϵĻº´æÊDZØÐëµÄ£¬Õâµã²»±Ø¶à˵ÁË¡£
ÁíÒ»¸öºÜÖØÒªµÄÊÇ£ºÊÓͼƬ¶Î»º´æ¡£
ÎҲο¼ÁËÀÏÕÔµÄдµÄÈýƪ¹ØÓÚÆ¬¶Î»º´æµÄÎÄÕ£º
ÊʺÏASP.NET MVCµÄÊÓͼƬ¶Ï»º´æ·½Ê½£¨ÉÏ£©£ºÆð²½
ÊʺÏASP.NET MVCµÄÊÓͼƬ¶Ï»º´æ·½Ê½£¨ÖУ©£º¸üʵÓõÄAPI
ÊʺÏASP.NET MVCµÄÊÓͼƬ¶Ï»º´æ·½Ê½£¨Ï£©£ºÒ³ÃæÊä³öÔ­Ôò
± ......

»ùÓÚIPagedList µÄ Asp.Net MVC ·ÖÒ³

ÉÏ´Îд¹ýһƪMVC·ÖÒ³µÄ
×Ô¼ºÓõÄÒ»¸öASP.Net MVC·ÖÒ³ÄóöÀ´·ÖÏíÏÂ
ÏÖÔÚ·¢Ò»¸ö¸Ä½ø°æ
ÀïÃæÓõ½µÄIPagedListÎÒ×Ô¼ºÒ²¼Ç²»ÇåÊÇ´ÓÄÄÀïCOPYÀ´µÄÁË¡£ºÇºÇ
ÕâÀïÎҾͲ»°ÑIPagedListµÄ´úÂëÌù³öÀ´ÁË£¬ÒªÊ¹µÄÏÂÔØDEMO×Ô¼ºÄðɡ£
ºǫ́¶ÔÊý¾ÝµÄ·ÖÒ³
public ActionResult Index([DefaultValue(1)]int p,[DefaultValue(10)]int pages ......

asp.netµ÷ÓÃocx

ÔÚ¹¤¾ßÏäÖÐÌí¼ÓÑ¡Ïî Ìí¼Ócom×é¼þ  ÕÒµ½ocxÎļþ
È»ºó ÉèÖÃÄã×öµÄÍøÒ³µÄ Ãû×Ö ÔÚä¯ÀÀÆ÷ÖÐµÄ ¹¤¾ß>IEÑ¡Ïî>°²È«>¿ÉÐÅÈÎÕ¾µã
 <body>
 <object id="VpOcx" classid="clsid:8B832F98-B7EE-4E2B-9FB4-86FA3BA17047"
    codebase="~/../Bin/VpMatrixOcxPro.ocx"
 &nbs ......

ÔÚasp.net 2.0ÖÐʹÓÃWebParts£¨×ªÔØ£©


WebPartManager
WebPartManager¿Ø¼þÊÇ Web ²¿¼þ¿Ø¼þ¼¯µÄºËÐĿؼþ£¬ÓÃÓÚ¹ÜÀíËùÓÐ Web ²¿¼þ¿Ø¼þ¡¢Web ²¿¼þ¹¦ÄÜºÍ Web ²¿¼þʼþ¡£
±ØÐëÏòʹÓà Web ²¿¼þ¿Ø¼þµÄÿ¸öÒ³Ìí¼ÓÒ»¸ö£¨½ö½öÒ»¸ö£©WebPartManager¿Ø¼þ¡£WebPartManager¿Ø¼þÖ»ÄÜÓÉͨ¹ýÉí·ÝÑéÖ¤µÄÓû§Ê¹Óá£
WebPartManger ÈÎÎñ
ϱíÁгöÁËÓÉ WebPartManager¿Ø¼þÖ´Ðе ......

¸÷°æ±¾IISÏÂASP.netÇëÇó´¦Àí¹ý³Ì

ASP.NETÊÇÒ»¸ö·Ç³£Ç¿´óµÄ¹¹½¨WebÓ¦ÓÃµÄÆ½Ì¨£¬ËüÌṩÁ˼«´óµÄÁé»îÐÔºÍÄÜÁ¦ÒÔÖÂÓÚ¿ÉÒÔÓÃËüÀ´¹¹½¨ËùÓÐÀàÐ͵ÄWebÓ¦Óá£
¾ø´ó¶àÊýµÄÈËÖ»ÊìϤ¸ß²ãµÄ¿ò¼ÜÈ磺 WebForms ºÍ WebServices --ÕâЩ¶¼ÔÚASP.NET²ã´Î½á¹¹ÔÚ×î¸ß²ã¡£
ÕâÆªÎÄÕµÄ×ÊÁÏÊÕ¼¯ÕûÀí×Ô¸÷ÖÖ΢Èí¹«¿ªµÄÎĵµ£¬Í¨¹ý±È½Ï IIS5¡¢IIS6¡¢IIS7 ÕâÈý´ú IIS ¶ÔÇëÇóµÄ´¦Àí¹ý³ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ