【質問】ASP.NETスレ Part5【議論】at PHP
【質問】ASP.NETスレ Part5【議論】 - 暇つぶし2ch685:nobodyさん
09/07/27 15:33:45
>>681
TextBoxとLabelを配置したUserControl作って、ReadOnlyプロパティとTextプロパティを作って、
TextBox.Visible = !ReadOnly Labe.Visible = ReadOnlyすればいいじゃない

>>683
public List<TextBox> TextBoxList = new List<TextBox>();
protected void Page_Load(object sender, EventArgs e)
{
 for (int i = 0; i < this.Repeater1.Items.Count; i++)
 {
  RepeaterItem ri1 = this.Repeater1.Items[i];
  TextBox textBox = (TextBox)ri1.FindControl("TextBox1");
  TextBoxList.Add(textBox);
 }
}
あとはお好きにどぞ


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch