【发布时间】:2011-10-16 20:43:38
【问题描述】:
我想在我的文本框中存储一些隐藏数据。按钮是否有像CommandArgument 这样的属性来存储我的数据?文本框位于网格视图的模板字段中,我在每个文本更改事件中获取这些数据。
编辑:
TabIndex='<%#((GridViewRow)Container).RowIndex%>'
protected void txt_evaluateWeights_TextChanged(object sender, EventArgs e)
{
calc();
int index = ((RadTextBox)sender).TabIndex;
((RadTextBox)gv_Evaluation.Rows[index + 1].Cells[3].FindControl("txt_evaluateWeights")).Focus();
}
我想用一个方便的属性替换 TabIndex 来保存我的索引。
【问题讨论】:
标签: c# .net asp.net properties controls