Author: rkeslar | Posted on: 1/8/2009 8:21:37 AM | Views : 366

 I have a FormView and inside it a repeater that lists 2 textboxes. I then want a button that will create an additional textbox each time it's clicked. I am using the following code, but getting an 'object reference not set to an instance of an object on this statement: phClerkships.Controls.Add(tb); 
the placeholder phClerkships is inside a FormView, but I found the control first. I can't figure out why it's not working. I tried an example without a formview and it worked but I can't get it to work with using a FormView.
Thankspublic int NumberOfClerkshipControls
{
get
{
if (ViewState["Count"] == null)
{
return 0;
}
Go to the complete details ...