var table = "MainContent_Criteria" + criteriaId;
var row = "MainContent_Row" + criteriaId + +questionId;
var cell = "MainContent_Cell" +questionId;
var txt = "MainContent_txt" + questionId;
//txt = text;
var myResult1 = FindControl(table).FindControl(row).FindControl(cell).FindControl(txt) as TextBox;
我得到异常“对象引用没有设置为对象的实例”我想在该文本框中设置一个值。