정의의 인스턴스로 설정되지 : 문제 (주는C 번호는, ASP.NET - NullReferenceException이 - 개체 참조가 사용 변수의 목적
Guid fldProId = (Guid)ffdPro.GetProperty("FieldId");
string fldProValue = (string)ffdPro.GetProperty("FieldValue");
FormFieldDef fmProFldDef = new FormFieldDef();
fmProFldDef.Key = fldProId;
fmProFldDef.Retrieve();
string fldProName = (string)fmProFldDef.GetProperty("FieldName");
string fldProType = (string)fmProFldDef.GetProperty("FieldType");
선 구체적 라인 (4) (hTxtBox.Text = ...)) :
if (fldProType.ToLower() == "textbox")
{
Label hTxtBox = (Label)findControl(fldProName);
hTxtBox.Text = fldProValue;
}
모든 데이터는 데이터베이스에서 올바르게 수집되지만 레이블은 엉망이됩니다. 어떤 아이디어?