Asp.netÒ³ÃæÖÐÒýÓÃjsÎļþÎÞЧµÄÎÊÌâµÄ½â¾ö·½·¨
ÔÚBSÏîÄ¿ÖУ¬Ä³¸öaspxÒ³ÃæÐèÒªÒýÓÃÍⲿ½Å±¾Îļþ£¬Í¨¹ýÔÚÒ³Ãæhead½Ú<script language="" src="">·½Ê½ÒýÓÃÖ¸¶¨µÄjsÖ®ºó£¬ÈÔÈ»ÎÞЧ¡£Í¨¹ýalert·½Ê½µ÷ÊÔ£¬·¢ÏÖÊÇÓÉÓÚjsÎļþ±àÂëÓëjsÎļþÄÚÈݲ»·û¡£ÓÉÓÚjsÎļþÖаüº¬ÖÐÎÄ×¢ÊÍ£¬ËùÒÔÐèÒªÉèÖÃjsÎļþΪ¿Éʶ±ðÖÐÎĵÄgb2312±àÂë¡£Æä·½·¨ÔÚÍøÉÏÒ²½²Êö£¬ÒÔÏÂΪÍøÕªÄÚÈÝ£º
ÔÚ.netÖÐͨ¹ýÕâÖÖ·½Ê½ÒýÓÃjsÎļþ
<script type="text/javascript" src="setday0.js"></script>
È»ºóÔÚÒ³ÃæÖе÷ÓÃsetday0.jsÎļþÖеķ½·¨ÍùÍù»á³ö´í£¡µ«ÊÇÄãÈç¹û°Ñsetday0.jsÎļþµÄÄÚÈÝÖ±½Ó·Åµ½¸ÃÒ³ÃæÖÐÀ´ÓÖÒ»µãÎÊÌâҲûÓС£Õâ¸öÎÊÌâÀ§»óÁËÎҺܾã¬ÔÚ1.1µÄʱºò¾ÍÓöµ½Á˵±Ê±Ã»°ì·¨¾ÍÔÚÒ³ÃæÖÐÖØдjs´úÂë¡£½ñÌì²Å·¢ÏÖÁËÕâ¸öÎÊÌâµÄ½â¾ö°ì·¨¡£
Õâ¸öÎÊÌâÊÇÓÉÓÚ.netÖеÄtext±àÂëËùÒýÆðµÄ£¬ÎÒÃÇÐèÒª°Ñsetday0.jsÎļþ±£´æΪUTF-8»òÕßÆäËûUnicode±àÂ뷽ʽ£¬ÎÊÌâ¾ÍÓÈжø½â¡£ÔÀ´µÄÎı¾±àÂëΪgb2312£¬ÒòΪÆäÖÐÓкº×Ö¡£
ÈçºÎ½øÐбàÂëת»»£¿
1¡¢ÓüÇʱ¾´ò¿ª£¬±£´æµÄʱºòÑ¡ÔñUnicode±àÂ룻
2¡¢Ö±½ÓÔÚvsÖÐÑ¡ÔñÁí´æΪ£¬±£´æ°´Å¥ÓÒ±ßÓиöС¼ýÍ·£¬µãһϣ¬È»ºóÑ¡Ôñ±àÂ뷽ʽÔÙ±£´æ¾Íok¡£
Ïà¹ØÎĵµ£º
½ñÌìÎÒÃǼÌÐøÍê³É Õâ¸ö MVC2 ¼òµ¥ÊµÀýµÄÊ£Ó๦ÄÜ£ºÏÔʾÃ÷ϸ¡¢Ìí¼Ó¡¢±à¼µÈ¡£¡£¡£¡£¡£
Ò»¡¢ÏÔʾÃ÷ϸ
¡¡¡¡ÔÚ MoviewsControllerÖÐµÄ Details·½·¨Àï ÓÒ¼ü--Add view£¬´´½¨Ò»¸öÇ¿ÀàÐ͵ÄÊÓͼ
¡¡¡¡
¡¡¡¡
È·¶¨ºó£¬Õâ¸öÃ÷ϸµÄÊÓͼÎļþ¾ÍÒѾÉú³É¡£¡£¡£
´Ëʱ£¬ÎÒÃÇÐèÒªÐÞ¸Ä Detials ·½·¨£¬¸ù¾Ý ´«µÝ¹ýÀ´µÄ id²ÎÊý£¬È¥Êý¾Ý¿â²éÑ ......
ÉÏ´Îд¹ýһƪMVC·ÖÒ³µÄ
×Ô¼ºÓõÄÒ»¸öASP.Net MVC·ÖÒ³ÄóöÀ´·ÖÏíÏÂ
ÏÖÔÚ·¢Ò»¸ö¸Ä½ø°æ
ÀïÃæÓõ½µÄIPagedListÎÒ×Ô¼ºÒ²¼Ç²»ÇåÊÇ´ÓÄÄÀïCOPYÀ´µÄÁË¡£ºÇºÇ
ÕâÀïÎҾͲ»°ÑIPagedListµÄ´úÂëÌù³öÀ´ÁË£¬ÒªÊ¹µÄÏÂÔØDEMO×Ô¼ºÄðɡ£
ºǫ́¶ÔÊý¾ÝµÄ·ÖÒ³
public ActionResult Index([DefaultValue(1)]int p,[DefaultValue(10)]int pages ......
ʹÓà ConfigurationSettings ¶ÔÏóµÄ AppSettings ÊôÐÔ¼ìË÷ ASP.NET ÅäÖÃÐÅÏ¢¡£
ASP.NET ÔÊÐí¿ª·¢ÈËԱͨ¹ýÖ±½Ó¹«¿ªÅäÖÃÉèÖã¨ÒÔÇ¿ÀàÐÍÊôÐÔµÄÐÎʽ£©»òʹÓó£¹æÅäÖà API£¬´ÓÓ¦ÓóÌÐòÖзÃÎÊÅäÖÃÉèÖá£Ï ......
×÷Õߣº°½Ê¿Î° Email£ºikmb@163.com תÔØ×¢Ã÷×÷Õß
˵Ã÷£º 1¡¢js¸ù¾Ý±íµ¥ÔªËØclassÊôÐÔ£¬°Ñ±íµ¥ÔªËصÄnameºÍvalue×éºÏΪjson¸ñʽ;ÓÃ±íµ¥ÔªËØclassÊôÐÔ¿ÉÒÔÕë¶ÔÐÔµØ×éºÏJSONÊý¾Ý¡£
2¡¢ºó¶ËASP.NETÓÃJavaScriptSerializer·´ÐòÁл¯Îª¶ÔÏóʵÁС£
3¡¢ºÃ´¦£º¼ò»¯ÁËÇ°¶ËÊý¾Ý¶ÁÈ¡Óëºó¶ËÊý¾Ý¸³Öµ¡£
function GetJSONSt ......