D
David
Is there a way to make sure that all the declared controls in the
declaration block of my ASP.NET class?
So say, I have a textbox control declared.
protected System.Web.UI.WebControls.TextBox TextBox1;
Then say the control gets deleted. VS.NET does not always get rid of the
declaration, and then when a piece of code that refers to the control runs,
I get a null reference error message.
So is there a way to run some kind of validation check to make sure all the
declared controls have been drawn?
declaration block of my ASP.NET class?
So say, I have a textbox control declared.
protected System.Web.UI.WebControls.TextBox TextBox1;
Then say the control gets deleted. VS.NET does not always get rid of the
declaration, and then when a piece of code that refers to the control runs,
I get a null reference error message.
So is there a way to run some kind of validation check to make sure all the
declared controls have been drawn?