ASP.NET ÑÝÁ·£ºÊ¹Óÿͻ§¶Ë½Å±¾È«Çò»¯ÈÕÆÚ
ÔÚ±¾ÑÝÁ·ÖУ¬Äú½«Ê¹Óà ECMAScript (JavaScript) ÒÔÈ«Çò»¯¸ñʽÏÔʾÈÕ¡¢ÔºÍÆäËûÓëÈÕÆÚÏà¹ØµÄÖµ¡£ASP.NET ÖÐµÄ AJAX ¹¦ÄÜ»ùÓÚ ScriptManager ¿Ø¼þÖеÄÉèÖÃÌṩ¿Í»§¶ËÈ«Çò»¯Ö§³Ö¡£½«ÕâЩȫÇò»¯ÉèÖÃÓ¦ÓÃÓÚ Web Ó¦ÓóÌÐòºó£¬¿ÉÒÔʹÓÿͻ§¶Ë½Å±¾»ùÓÚÇøÓòÐÔÖµÉèÖà JavaScript Date »ò Number ¶ÔÏóµÄ¸ñʽ¡£´Ë²Ù×÷²»ÐèÒª»Ø·¢µ½·þÎñÆ÷¡£
¿Í»§¶Ë½Å±¾Ê¹ÓõÄÇøÓòÐÔÖµ»ùÓÚÓÉÓû§µÄä¯ÀÀÆ÷ÉèÖÃÌṩµÄĬÈÏÇøÓòÐÔÉèÖ᣻òÕߣ¬»¹¿ÉÒÔͨ¹ýÔÚÓ¦ÓóÌÐòÖÐʹÓ÷þÎñÆ÷ÉèÖûò·þÎñÆ÷´úÂ룬½«ÆäÉèÖÃΪÌض¨µÄÇøÓòÐÔÖµ¡£
ÇøÓòÐÔÖµÌṩÓйØÌض¨ÇøÓòÐÔ£¨ÇøÓòÉèÖ㩵ÄÐÅÏ¢¡£ÇøÓòÐÔÖµÓÉÁ½¸ö±íʾÓïÑÔµÄ×ÖĸºÍÁ½¸ö±íʾ¹ú¼Ò»òµØÇøµÄ×Öĸ×éºÏ¶ø³É¡£Ê¾Àý°üÀ¨ es-MX£¨Î÷°àÑÀÓï/Ä«Î÷¸ç£©¡¢es-CO£¨Î÷°àÑÀÓï/¸çÂ×±ÈÑÇ£©ºÍ fr-CA£¨·¨Óï/¼ÓÄô󣩡£
ASP.NET AJAX Date À©Õ¹Í¨¹ýÌṩ localeFormat ·½·¨£¬Ïò JavaScript Date ¶ÔÏóÌí¼Óй¦ÄÜ¡£Ê¹Óô˷½·¨¿ÉÒÔ»ùÓÚä¯ÀÀÆ÷µÄÓïÑÔÉèÖᢷþÎñÆ÷ÉèÖûò·þÎñÆ÷´úÂëÉèÖà Date ¶ÔÏóµÄ¸ñʽ¡£ÕâЩÉèÖûáÓ°Ïì·þÎñÆ÷µÄÇøÓòÐÔÖµ£¬·þÎñÆ÷È»ºó¶Ô´ËÇøÓòÐÔÖµ½øÐнâÊÍ£¬ÒÔÉú³ÉÒ»¸ö¿Í»§¶Ë¶ÔÏ󣬲¢ÓÉ Sys.CultureInfo.CurrentCulture ÊôÐÔ¹«¿ª¸Ã¶ÔÏ󡣴˶ÔÏóÓÃÓÚÉèÖÃÈÕÆÚ¸ñʽ¡£
Ò»¡¢»ùÓÚä¯ÀÀÆ÷ÉèÖÃÈ«Çò»¯ÈÕÆÚ
Ê×ÏÈ£¬Äú½«Ê¹ÓÃä¯ÀÀÆ÷ÖеÄÓïÑÔÊ×Ñ¡ÏîÉèÖÃÀ´Ö¸¶¨ÈçºÎÉèÖÃÈÕÆÚ¸ñʽ¡£
1¡¢¹Ø±ÕÈκδò¿ªµÄ Microsoft Internet Explorer »òĬÈÏä¯ÀÀÆ÷µÄʵÀý£¬ÒÔ±ãËùÓÐÐÂʵÀý½«Ê¹ÓÃеÄÇøÓòÉèÖá£
2¡¢´ò¿ª Internet Explorer µÄÒ»¸öÐÂʵÀý¡£
3¡¢ÔÚ“¹¤¾ß”²Ëµ¥ÉÏ£¬ÒÀ´Îµ¥»÷“Internet Ñ¡Ï¢“³£¹æ”Ñ¡ÏºÍ“ÓïÑÔ”¡£
4¡¢½«ÓïÑÔÊ×Ñ¡ÏîÉèÖÃΪ es-MX£¨Î÷°àÑÀÓï/Ä«Î÷¸ç£©²¢´ÓÁбíÖÐÒƳýÈκÎÆäËûÇøÓòÉèÖá£
5¡¢¹Ø±Õä¯ÀÀÆ÷¡£
6¡¢ÔÚ Visual Studio ÖУ¬´´½¨»ò´ò¿ªÖ§³Ö AJAX µÄ ASP.NET ÍøÒ³£¬È»ºóÇл»µ½“Éè¼Æ”ÊÓͼ¡£
7¡¢Ñ¡Ôñ ScriptManager ¿Ø¼þ²¢½«Æä EnableScriptGlobalization ÊôÐÔÉèÖÃΪ true¡£
8¡¢ÔÚ“¹¤¾ßÏ䔵ēAJAX Extensions”Ñ¡ÏÖУ¬Ë«»÷ UpdatePanel ¿Ø¼þÒÔ½«¸üÐÂÃæ°åÌí¼Óµ½Ò³ÉÏ¡£
9¡¢½« UpdatePanel ¿Ø¼þµÄ ChildrenAsTriggers ÊôÐÔÉèÖÃΪ false¡£
10¡¢½« UpdatePanel ¿Ø¼þµÄ UpdateMode ÊôÐÔÉèÖÃΪ Conditional¡£
11¡¢ÔÚ UpdatePanel ¿Ø¼þÄÚµ¥»÷£¬È»ºó´Ó“¹¤¾
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
If you come to ASP.NET MVC from a purely ASP.NET Web Forms background, one of the first things you are likely to notice is that all those nice easy Server Controls have disappeared. One of those is the FileUpload, and its absence seems to cause a few problems. This article looks at how to upload f ......
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
  ......
1.ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspx.csµÄC#´úÂë
view plaincopy to clip ......