source: default/framework/trunk/WebApplication/UI/WebControls/RequiredFieldValidatorPage.aspx.cs @ 1622

このファイルの 1622 以降における最終更新内容1622 で hizuya@… が 13ヵ月前 に更新しました
  • Validator 系に、親や祖先の Enabled の影響を受ける設定を追加。
  • PlaceHolder の Enabled プロパティを追加。
ファイルサイズ: 2.1 KB
 
1// ----------------------------------------------------------------------------
2// <copyright company="F.C. Soft., Inc.">
3//   Copyright(c) F.C. Soft., Inc.  All rights reserved.
4// </copyright>
5// <license>
6//   Licensed to F.C. Soft., Inc. (FCSoft) under one or more contributor
7//   license agreements.  See the NOTICE file distributed with this work for
8//   additional information regarding copyright ownership.  FCSoft licenses
9//   this file to You under the Apache License, Version 2.0 (the "License");
10//   you may not use this file except in compliance with the License.  You
11//   may obtain a copy of the License at
12//
13//     http://www.apache.org/licenses/LICENSE-2.0
14//
15//   Unless required by applicable law or agreed to in writing, software
16//   distributed under the License is distributed on an "AS IS" BASIS,
17//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18//   See the License for the specific language governing permissions and
19//   limitations under the License.
20// </license>
21// ----------------------------------------------------------------------------
22
23namespace FCSoft.SilverFrost.Framework.Web.UI.WebControls
24{
25    using System;
26
27
28    /// <summary>
29    /// <see cref="RequiredFieldValidator"/> のテストです。
30    /// </summary>
31    public partial class RequiredFieldValidatorPage :
32        VerbosePage
33    {
34        /// <summary>
35        /// インスタンスを作成します。
36        /// </summary>
37        public RequiredFieldValidatorPage()
38        {
39            // AVOID
40        }
41
42        /// <summary>
43        /// <see cref="CheckBox202"/> のチェック状態が変更された場合に呼び出されるイベントハンドラです。
44        /// </summary>
45        /// <param name="sender">イベントのソース。</param>
46        /// <param name="e">イベント データを格納している <see cref="EventArgs"/>。</param>
47        protected void CheckBox202_OnCheckedChanged(object sender, EventArgs e)
48        {
49            PlaceHolder202.Enabled = CheckBox202.Checked;
50        }
51    }
52}
詳しい使い方は TracBrowser を参照してください。