チェンジセット 1664 (default)


以下の違いを無視:
日時:
2024/08/28 11:18:27 (6週前)
更新者:
hizuya@…
ログメッセージ:
  • DefaultButtonSetter を Init の後にレンダリングされなくなるようなコントロール (FormView の ViewMode の変更等) 内に配置した場合 Render でエラーが発生する問題に対応。
場所:
framework/trunk
ファイル:
3個の追加
2個の更新

凡例:

未変更
追加
削除
  • framework/trunk/WebApplication/WebApplication.csproj

    r1660 r1664  
    7777    <Content Include="UI\WebControls\FormViewBindUserControl1.ascx" /> 
    7878    <Content Include="UI\WebControls\FormViewPage.aspx" /> 
     79    <Content Include="UI\WebControls\FormViewWithControlsPage.aspx" /> 
    7980    <Content Include="UI\WebControls\ObjectDataSourceFormViewPage.aspx" /> 
    8081    <Content Include="UI\WebControls\RadioButtonFieldPage.aspx" /> 
     
    356357    <Compile Include="UI\WebControls\FormViewPage.aspx.designer.cs"> 
    357358      <DependentUpon>FormViewPage.aspx</DependentUpon> 
     359    </Compile> 
     360    <Compile Include="UI\WebControls\FormViewWithControlsPage.aspx.cs"> 
     361      <DependentUpon>FormViewWithControlsPage.aspx</DependentUpon> 
     362      <SubType>ASPXCodeBehind</SubType> 
     363    </Compile> 
     364    <Compile Include="UI\WebControls\FormViewWithControlsPage.aspx.designer.cs"> 
     365      <DependentUpon>FormViewWithControlsPage.aspx</DependentUpon> 
    358366    </Compile> 
    359367    <Compile Include="UI\WebControls\ForwarderPage.aspx.cs"> 
  • framework/trunk/WebLibrary/Sources/UI/WebControls/DefaultButtonSetter.cs

    r864 r1664  
    2626    using System.ComponentModel; 
    2727    using System.Web.UI; 
     28    using System.Web.UI.WebControls; 
    2829 
    2930 
     
    7980        [Themeable(false)] 
    8081        [DefaultValue("")] 
     82        [IDReferenceProperty(typeof(IButtonControl))] 
    8183        [WebCategory("Behavior")] 
    8284        [WebDescription("Description_DefaultButtonSetter_DefaultButton")] 
     
    130132 
    131133        /// <summary> 
    132         /// <see cref="Control.Init"/> イベントを発生させます。 
    133         /// </summary> 
    134         /// <param name="e"> 
    135         /// イベント データを格納している <see cref="EventArgs"/>。 
    136         /// </param> 
    137         protected override void OnInit(EventArgs e) 
    138         { 
    139             // 親を呼び出す 
    140             base.OnInit(e); 
    141  
    142             EnsureDefaultButton(); 
    143         } 
    144  
    145         /// <summary> 
    146134        /// このコントロールがレンダリングされる直前に呼び出されるイベントハンドラです。 
    147135        /// </summary> 
     
    209197            } 
    210198 
     199            // 既にデフォルトボタンが設定済の場合は何もしない 
     200            if (!string.IsNullOrEmpty(Page.Form.DefaultButton)) 
     201            { 
     202                return; 
     203            } 
     204 
    211205            if (string.IsNullOrEmpty(id)) 
    212206            { 
詳しい使い方は TracChangeset を参照してください。