RIAã®å¿ è¦æ§
ãæ¥åã¢ããªã±ã¼ã·ã§ã³ãä½æãã¦ããã¨ãç»é¢å ã®é ç®ãåçã«å¤æ´ããããã¨ããã±ã¼ã¹ãåºã¦ãããã¨ãããããã¾ããä»å使ç¨ãã¦ãããµã³ãã«ã§ããã°ãæ¥ä»ãã«ã¬ã³ãã¼ããé¸æããããããå ´æããããããã¦ã³ãªã¹ããå¤æ´ãããããä¼è°å®¤ããããããã¦ã³ãªã¹ããé¸æããå ´æã®ä¼è°å®¤ã«çµãè¾¼ããã¨ãã£ããã®ã§ãã
å¾æ¥ã®Webã¢ããªã±ã¼ã·ã§ã³
ãASP.NETãåãã¦ä¸ã«ç»å ´ãã2002å¹´ã¯ãWebã¢ããªã±ã¼ã·ã§ã³ã¨ããã°ä¸åº¦è¡¨ç¤ºãããã¼ã¸ã®å 容ã¯å¤ããã«ãåçã«å¤ãããé¨åãããã°ãã®ãã³ã«PostBackãçºçããã¦å表示ããã¨ããã®ãå½ããåã§ãããã¤ã¾ãããå ´æããå¤æ´ããã¨PostBackãçºçãããä¼è°å®¤ãã ãã§ãªããã¹ã¦ã®é ç®ãå表示ãã¦ããããã§ãã
ãããããã¦ã¼ã¶ã¼ããã¯ãç»é¢ãã¡ãã¤ããããã¹ã¯ãã¼ã«ä½ç½®ãå é ã«æ»ã£ã¦ãã¾ããã¨ãã£ãè¦æ ãå¯ãããããã¨ãå¤ãããã¾ãã¡ä½¿ãåæã®è¯ããªããã®ã§ããã
ããã®åé¡ã解決ããããã«Page.MaintainScrollPositionOnPostBackããããã£ã使ãã¨ããæ¹æ³ãããã¾ããããæ ¹æ¬çãªè§£æ±ºã§ã¯ããã¾ããã§ããã
ãä¸è¿°ã®ãã¹ã¯ãã¼ã«ä½ç½®ãå é ã«æ»ã£ã¦ãã¾ããç¾è±¡ãåé¿ããããã«ç¨æãããããããã£ã§ã@Pageãã£ã¬ã¯ãã£ãã§Trueã«è¨å®ããã¨ãPostBackå¾ã«PostBackåã®ã¹ã¯ãã¼ã«ä½ç½®ã復å ãã¾ãã
<@Page Title="Default" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" MaintainScrollPositionOnPostBack="True" />