ÔÚNETBOXÖÐʹÓÃAsp AJAX Response.CharSet½â¾ö·½·¨
¸Õµ÷ÊÔ³ÌÐòµÄʱºò±¨´íºóÈ»ºóÕҵĽâ¾ö·½·¨£¬ÏÖÔÚ·¢³öÀ´´ó¼Ò½è¼ø¡£
-----------------------
´íÎóÌáʾ£º
ÔËÐÐʱ´íÎó 800a01b6
¶ÔÏó²»Ö§³Ö´ËÊôÐÔ»ò·½·¨: Response.CharSet
---------------------------------------------------------------------
(°Ù¶Èһϣ¬»¹ÓкܶàÈËÓöµ½Í¬ÑùµÄ´íÎó)
Microsoft VBScript runtime error 800a01b6
Object doesnt support this property or method: Response.Charset
¼ì²é³ö´í´úÂ룺
Response.CharSet = "GB2312"
ÕâÐдúÂëÖ÷ÒªÊÇΪÁ˽â¾öajaxÓÃget»ñµÃÊý¾Ýʱ£¬ÖÐÎÄÂÒÂëµÄÎÊÌâ¡£
ɾ³ýÕâÐдúÂëºónetboxÕý³£ÔËÐУ¬µ«ÊÇajax·µ»ØµÄÖÐÎÄÊý¾Ý³ÉÁËÂÒÂë¡£
˵Ã÷ NetBox²»Ö§³Ö Response.CharSet ¡£
´ò¿ªnetboxµÄʹÓÃÊֲᣬÒÀ´ÎÕ¹¿ª£º
¶ÔÏó²Î¿¼ → Response ¶ÔÏó → Response ·½·¨
AddHeader ·½·¨
AddHeader ·½·¨ÓÃÖ¸¶¨µÄÖµÌí¼Ó HTML ±êÌâ¡£¸Ã·½·¨³£³£ÏòÏìÓ¦Ìí¼ÓÐ嵀 HTTP ±êÌâ
Óï·¨
Response.AddHeader name, value
²ÎÊý
name
еıêÌâ±äÁ¿µÄÃû³Æ
value
´æ´¢ÔÚеıêÌâ±äÁ¿Öеijõʼֵ
×¢ÊÍ
Ϊ±ÜÃâÃüÃû²»Ã÷È·£¬name Öв»ÄÜ°üº¬ÈκÎÏ»®Ïß×Ö·û (_)¡£ServerVariables ¼¯ºÏ½«±êÌâÖеÄÏ»®Ïß×Ö·û½âÊÍΪ·´Ð±¸Ü¡£ÀýÈ磬ÏÂÃæµÄ½Å±¾Ê¹·þÎñÆ÷²éÕÒÒ»¸öÃûΪ MY-HEADER µÄ±êÌâÃû¡£
<% Request.ServerVariables("HTTP_MY_HEADER") %>
ʾÀý
ÏÂÃæÕâ¸öʾÀýʹÓà AddHeader ·½·¨ÒªÇó¿Í»§¶ËʹÓà BASIC ÑéÖ¤¡£
<% Response.Addheader "WWW-Authenticate", "BASIC" %>
×¢Òâ Ç°ÃæµÄ½Å±¾½ö֪ͨ¿Í»§¶Ëä¯ÀÀÆ÷ʹÓÃÄĸöÑéÖ¤¡£ÈôÄúÔÚ Web Ó¦ÓóÌÐòÖÐʹÓøýű¾£¬ÔòÒ»¶¨ÒªÆôÓà Web ·þÎñÆ÷µÄ BASIC ÑéÖ¤¡£
ÓÚÊǽ«
Response.CharSet = "GB2312"
Ìæ»»³É£º
Response.Addheader "Content-Type","text/html; charset=gb2312"
NetBox»·¾³ÏÂajaxÓÃget»ñÈ¡Êý¾Ý,ÖÐÎÄÂÒÂëµÄÎÊÌâ½â¾ö£¡
Ïà¹ØÎĵµ£º
ajaxµÄ¹¦ÄÜÖ÷ÒªÊÇÓ¦ÓÃÔÚjsÉÏ£¬ajax¶ÔaspûʲôҪÇó£¬aspÖ»¸ºÔðÔÚºǫ́ÏÔʾ¼°²Ù×÷·þÎñ¶ËµÄÊý¾Ý¡£
¿ÉÒÔÏñÏÂÃæÕâÑù˼¿¼£º
1.д±íµ¥µÚÒ»ÏÈçÓû§Ãû£©
2.onblurʼþ(ʧȥ½¹µã)·¢Éúʱ¿ªÊ¼ÑéÖ¤£¬onblur="checkusername()"
3.js·¢Ò»¸öÇëÇó¸øµÚÒ»¸öasp(¼Ù¶¨Îªajaxusername.asp)Èç¹û´ÓÊý¾Ý¿âÖÐÕÒµ½ÁËÕâ¸öÓû§£¬¸ø³ö1(ajaxuse ......
×¢£º±¾ÈË°²×°µÄÊÇWindows 7 RC 7100 32λÖÐÎÄÆì½¢°æ ¡£
ÔÚWindows 7ÏÂÃæIIS7µÄ°²×°·½·¨£º
Ò»¡¢½øÈëWindows 7µÄ ¿ØÖÆÃæ°å
£¬Ñ¡Ôñ×ó²àµÄ ´ò¿ª»ò¹Ø±ÕWindows¹¦ÄÜ
¡£
¶þ¡¢ÏÖÔÚ³öÏÖÁË°²×°Windows¹¦ÄܵÄÑ¡Ïî²Ëµ¥
£¬×¢ÒâÑ¡ÔñµÄÏîÄ¿£¬ÎÒÃÇÐèÒªÊÖ¶¯Ñ¡Ôñ
ÐèÒªµÄ¹¦ÄÜ£¬ÏÂÃæÕâÕÅͼƬ°ÑÐèÒª°²×°µÄ·þÎñ¶¼ÒѾѡÔñÁË£¬´ó¼Ò¿ÉÒÔ°´ÕÕ ......
¿Í»§¶Ë´úÂ룺
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Ê ......
¸Õ¿ªÊ¼Ñ§Ajax£¬¿´µ½ºÜ¶àÍøÉϵĴúÂ붼ÓÃGet·½·¨Ìá½»²ÎÊý£¬TomcatĬÈÏISO±àÂëʵÔÚÊÇÈÃÈËÍ·Í´£¬¶Ô¸¶ÂÒÂëÎÒ¶¼ÊÇÓùýÂËÆ÷×ö×Ö·û±àÂë¹ýÂ˵ģ¬Get·½·¨¹ýÂËÆ÷¼àÌý²»µ½£¬ËùÒÔÎÒһֱϲ»¶Ê¹ÓÃPost·½·¨£¬ÏÂÃæ¶ÔAjax GetºÍPost·½·¨×öÒ»¶Ô±È
GET£º
<mce:script type="text/javascript"><!--
var xmlHttpRequest;
......