私はPage_preRenderについてグーグルで検索します。page_LoadではなくPage_PreRenderを使用するにはどうすればよいですか、またはpage_Loadを使用できず、Page_PreRenderを使用する必要があるシナリオは何でしょうか。
" The point at which the objects are prerendered is the last time changes to the objects can be saved or persisted to viewstate. This makes the PreRender step a good place to make final modifications, such as changing properties of controls or changing Control Tree structure, without having to worry about ASP.NET making changes to objects based off of database calls or viewstate updates. After the PreRender phase those changes to objects are locked in and can no longer be saved to the page viewstate. The PreRender step can be overridden using OnPreRender
"。
しかし、page_Loadで実行できず、PreRenderで実行する必要がある変更の種類を理解できませんでした。
私が知っているように、Page_PreInitでは、コントロールを動的に作成し、page_LoadまたはInitの後でできなかったMasterPageまたはThemeを変更または割り当てることができます。
しかし、Page_PreRenderについては、Page_PreRenderでのみ実行できることは何ですか。