i am using asp.net 2.0 i need help for string Value to Textbox id..I am already declare textbox in source that id in string value..i have more than ten textbox.but textbox id serial number i set value all text box same time same value i use below code
for (int i = 1; i <= 12; i++)
{
    String _control = "txt_capex_" + i.ToString().Trim();
    TextBox txt = FindControl(_control) as TextBox;
    txt.Text = _splitamount.ToString().Trim();
}
i get Error in
System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object.
what solution for this..
 
     
     
    